10 package com.generalrobotix.ui.view.graph;
27 private static final String
SEP =
".";
29 private static final String
UNIT =
"unit";
30 private static final String
BASE =
"base";
31 private static final String
EXTENT =
"extent";
32 private static final String
FACTOR =
"factor";
51 Properties prop =
new Properties();
53 prop.load(url.openStream());
54 }
catch (IOException ex) {
61 StringTokenizer dkNames =
63 while (dkNames.hasMoreTokens()) {
64 String dkName = dkNames.nextToken();
65 String
unit = prop.getProperty(dkName +
SEP +
UNIT);
66 double base = Double.parseDouble(prop.getProperty(dkName +
SEP +
BASE));
67 double extent = Double.parseDouble(prop.getProperty(dkName +
SEP +
EXTENT));
70 ? Double.parseDouble((String)prop.getProperty(dkName +
SEP +
FACTOR))
80 int postfixlen = postfix.length();
81 Enumeration elm = prop.propertyNames();
82 while (elm.hasMoreElements()) {
83 String pname = (String)elm.nextElement();
84 if (pname.endsWith(postfix)) {
85 String aname = pname.substring(
86 0, pname.length() - postfixlen