JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart.beans
Class MultiDataChartWrapper

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

public class MultiDataChartWrapper
extends RadioDataWrapper

Wrapper class for Data Chart-related properties. Used by the MultiChart Bean.

See Also:
Serialized Form

Field Summary
 int[] charttype
           
 int[] xaxis
           
 int[] yaxis
           
 
Fields inherited from class com.klg.jclass.chart.beans.RadioWrapper
radioIds
 
Constructor Summary
MultiDataChartWrapper()
          Default constructor.
MultiDataChartWrapper(int size)
          Constructor.
MultiDataChartWrapper(String charttypeString, String xaxisString, String yaxisString)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 void setPropertyValue(int index, com.klg.jclass.chart.ChartDataView dataview)
          Sets the properties on the specified dataview 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.ChartDataView dataview)
          Stores the properties from the specified dataview in internal arrays at the specified index.
 String toString()
          Converts properties to String for code generation.
 
Methods inherited from class com.klg.jclass.chart.beans.RadioDataWrapper
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

charttype

public int[] charttype

xaxis

public int[] xaxis

yaxis

public int[] yaxis
Constructor Detail

MultiDataChartWrapper

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


MultiDataChartWrapper

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

Parameters:
size -

MultiDataChartWrapper

public MultiDataChartWrapper(String charttypeString,
                             String xaxisString,
                             String yaxisString)
Constructor. Allocates space for the arrays and fills them by parsing series Strings of format "(x1 value)(y1 value)(x2 value)(y2 value)".

Parameters:
charttypeString - chart type String in above format. Possible values are PLOT, SCATTER_PLOT, AREA, STACKING_AREA, BAR, STACKING_BAR, PIE, HILO, HILO_OPEN_CLOSE, or CANDLE.
xaxisString - x axis String in above format. Values are the names of the axis being referenced (for example, x1).
yaxisString - y axis String in above format. Values are the names of the axis being referenced (for example, y1).
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 RadioDataWrapper
Parameters:
size - the size of the internal arrays

setWrapperValue

public void setWrapperValue(int index,
                            com.klg.jclass.chart.ChartDataView dataview)
Stores the properties from the specified dataview in internal arrays at the specified index.
Note: The x-axis and y-axis wrapper values are set by the Bean's getDataChart() method.

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

setPropertyValue

public void setPropertyValue(int index,
                             com.klg.jclass.chart.ChartDataView dataview)
Sets the properties on the specified dataview from values stored in internal arrays at the specified index.
Note: The x-axis and y-axis properties are set by the Bean's setDataChart() method.

Specified by:
setPropertyValue in class RadioDataWrapper
Parameters:
index - the index where the values for this dataview are stored
dataview - the dataview 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

equals

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

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