JMSL Chart Programmer’s Guide
Attribute Tags
Attribute tags can have either of two forms:
 
<Attribute name="attribute-name" value="attribute-value"/>
or
 
<Attribute name="attribute-name">attribute-value</Attribute>
The type of an attribute’s value is determined by the return type of its getter method. For example, if the attribute type is Foo, its type is the return type of the 0-argument method getFoo() defined in the node being defined or in one of its ancestor nodes.
Symbolic names can be used for enumerated types. See the section Enumerated Types in Chart XML Files for details.
Attribute values of the following types can be handled: String, Color, int or Integer, double or Double, Double[], boolean or Boolean, Image, Paint, or Locale.
Colors are either red, green, blue triples in the range [0,255] or color names. For example "255,215,0" or "gold". See the Colors page for more details.
A Locale can be either the name of one of the static, public fields in Locale, such as ENGLISH or of the form language_country or language_country_variant. For example, "nl_BE" or "nl_BE_EURO".
Attribute values of type Image and Paint are specified by giving the URL of an image file, for example
 
"http://www.google.com/images/logo.gif"
As a special case, the URL protocol can be a classpath, for example
 
"classpath:/com/imsl/example/chart/marker.gif"
The image is then loaded as a resource by the classloader using getResource(String). The classloader used is the one used to load the ChartXML class. This feature is used to load images from JAR files.