JClass DesktopViews 6.3.0 API
Documentation

com.klg.jclass.chart.beans
Class AxisGridWrapper

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

public class AxisGridWrapper
extends RadioAxisWrapper

Wrapper class for Axis Grid properties. Used by the MultiChart Bean.

See Also:
Serialized Form

Field Summary
 Color[] color
           
 int[] pattern
           
 boolean[] showing
           
 double[] spacing
           
 boolean[] spacing_isdef
           
 int[] width
           
 int width_def
           
 
Fields inherited from class com.klg.jclass.chart.beans.RadioWrapper
radioIds
 
Constructor Summary
AxisGridWrapper()
          Default constructor.
AxisGridWrapper(int size)
          Constructor.
AxisGridWrapper(String showingString, String spacingString, String patternString, String widthString, String colorString)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
           
 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.
 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

showing

public boolean[] showing

spacing

public double[] spacing

pattern

public int[] pattern

width

public int[] width

color

public Color[] color

spacing_isdef

public boolean[] spacing_isdef

width_def

public int width_def
Constructor Detail

AxisGridWrapper

public AxisGridWrapper()
Default constructor. Members arrays will be empty.


AxisGridWrapper

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

Parameters:
size -

AxisGridWrapper

public AxisGridWrapper(String showingString,
                       String spacingString,
                       String patternString,
                       String widthString,
                       String colorString)
Constructor. Allocates space for the arrays and fills them by parsing series Strings of format (x1 value)(y1 value)(x2 value)(y2 value).

Parameters:
showingString - showing String in above format. Values are boolean values.
spacingString - spacing String in above format. Values are double values.
patternString - pattern String in above format. Possible values are None, Solid, Long_Dash, Short_Dash, LSL_Dash, or Dash_Dot.
Note: The pattern property is currently disabled and setting this String will do nothing.
widthString - width String in above format. Values are integer values.
colorString - color String in above format. Values should be a String representing a color name (for example, "blue") or an rgb value represented as "r-g-b".
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

equals

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

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