Package com.storedobject.chart
Class Axis.GridAreas
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.VisiblePart
com.storedobject.chart.Area
com.storedobject.chart.Axis.GridAreas
- All Implemented Interfaces:
ComponentPart,ComponentProperty,VisibleProperty
- Enclosing class:
Axis
Represents the grid-areas drawn by the axis.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final intGet the interval for the grid lines.voidsetInterval(int interval) Set the interval for the grid lines.Methods inherited from class com.storedobject.chart.VisiblePart
isVisible, setVisible, validateMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, setName, setRenderingIndexMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
GridAreas
public GridAreas()Constructor.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classArea- Parameters:
sb- Encoded JSON string to be appended to this.
-
getInterval
public final int getInterval()Get the interval for the grid lines. (If not defined, the interval property of the axis-label will be used).- Returns:
- Interval.
-
setInterval
public void setInterval(int interval) Set the interval for the grid lines. (If not defined, the interval property of the axis-label will be used).- Parameters:
interval- 0 means all, 1 means every alternate line, 2 means every 2nd line and so on. A special value of -1 means it will be determined automatically.
-