JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart.beans
Class AxisPointLabelWrapper

java.lang.Object
  |
  +--com.klg.jclass.chart.beans.RadioWrapper
        |
        +--com.klg.jclass.chart.beans.RadioAxisWrapper
              |
              +--com.klg.jclass.chart.beans.AxisPointLabelWrapper
All Implemented Interfaces:
Serializable

public class AxisPointLabelWrapper
extends RadioAxisWrapper

Wrapper class for Axis Point Label properties. Used by the MultiChart Bean.

See Also:
Serialized Form

Field Summary
 String[] pointlabels
           
 
Fields inherited from class com.klg.jclass.chart.beans.RadioWrapper
radioIds
 
Constructor Summary
AxisPointLabelWrapper()
          Default constructor.
AxisPointLabelWrapper(int size)
          Constructor.
AxisPointLabelWrapper(String pointLabelString)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 String pointLabelsToString(List pointLabelList, double[] pointValueList)
          Converts list of point labels to a String for code generation.
 void setPropertyValue(int index, com.klg.jclass.chart.JCAxis axis)
          Sets the properties on the specified axis from values stored in internal arrays at the specified index.
 void setWrapperArraySize(int size)
          Sets the size of the internal arrays that store properties for axes (should be equal to the number of axes).
 void setWrapperValue(int index, com.klg.jclass.chart.JCAxis axis)
          Stores the properties from the specified axis in internal arrays at the specified index.
 List stringToPointLabels(String pointLabelString, double[] pointValueList)
          Converts String to list of point labels.
 String toString()
          Converts properties to String for code generation.
 
Methods inherited from class com.klg.jclass.chart.beans.RadioAxisWrapper
setPropertyValues, setWrapperValues
 
Methods inherited from class com.klg.jclass.chart.beans.RadioWrapper
booleanValuesToString, colorValuesToString, dateValuesToString, doubleIsDefValuesToString, doubleValuesToString, enumIsDefValuesToString, enumValuesToString, enumValuesToString, fontValuesToString, intIsDefValuesToString, intValuesToString, radioIDValuesToString, radioIDValuesToString, seriesStringPrefix, seriesStringSuffix, setWrapperBooleanValues, setWrapperColorValues, setWrapperDateValues, setWrapperDoubleIsDefValues, setWrapperDoubleValues, setWrapperEnumIsDefValues, setWrapperEnumValues, setWrapperEnumValues, setWrapperFontValues, setWrapperIntIsDefValues, setWrapperIntValues, setWrapperRadioIDValues, setWrapperRadioIDValues, setWrapperStringIsDefValues, setWrapperStringValues, stringIsDefValuesToString, stringValuesToBigString, stringValuesToString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pointlabels

public String[] pointlabels
Constructor Detail

AxisPointLabelWrapper

public AxisPointLabelWrapper()
Default constructor. Members will be empty.


AxisPointLabelWrapper

public AxisPointLabelWrapper(int size)
Constructor. Allocates space for the arrays but does not fill them.

Parameters:
size -

AxisPointLabelWrapper

public AxisPointLabelWrapper(String pointLabelString)
Constructor. Allocates space for the arrays and fills them by parsing series Strings of format (x1 value)(y1 value)(x2 value)(y2 value).

Parameters:
pointLabelString - point label String in above format. Values are Strings, each a list of point label pairs separated by a newline (\n). For example, the series String might look like :
(x1 1.0,one\n2.0,two\n3.0,three)
Method Detail

setWrapperArraySize

public void setWrapperArraySize(int size)
Sets the size of the internal arrays that store properties for axes (should be equal to the number of axes).

Specified by:
setWrapperArraySize in class RadioAxisWrapper
Parameters:
size - the size of the internal arrays

setWrapperValue

public void setWrapperValue(int index,
                            com.klg.jclass.chart.JCAxis axis)
Stores the properties from the specified axis in internal arrays at the specified index.

Specified by:
setWrapperValue in class RadioAxisWrapper
Parameters:
index - the index of the array that corresponds to this axis
axis - the axis that contains the properties for this index

setPropertyValue

public void setPropertyValue(int index,
                             com.klg.jclass.chart.JCAxis axis)
Sets the properties on the specified axis from values stored in internal arrays at the specified index.

Specified by:
setPropertyValue in class RadioAxisWrapper
Parameters:
index - the index where the values for this axis are stored
axis - the axis that we need to set these values on

toString

public String toString()
Converts properties to String for code generation.

Overrides:
toString in class Object
Returns:
String containing properties for code generation

pointLabelsToString

public String pointLabelsToString(List pointLabelList,
                                  double[] pointValueList)
Converts list of point labels to a String for code generation.

Parameters:
pointLabelList - array of Strings for point labels
pointValueList - matching array of values for point labels
Returns:
String containing list of point labels. Each line is of the format "point,label" with each of these pairs separated by newlines.

stringToPointLabels

public List stringToPointLabels(String pointLabelString,
                                double[] pointValueList)
Converts String to list of point labels.

Parameters:
pointLabelString - String containing entire point label list. Each line has a pair of the form "value,label".
pointValueList - array of possible point values
Returns:
array of Strings representing the list of point labels

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

Copyright © 2004 Quest Software Inc..
All rights reserved.