Package com.storedobject.chart
Class RectangularCoordinate
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.VisiblePart
com.storedobject.chart.CoordinateSystem
com.storedobject.chart.RectangularCoordinate
- All Implemented Interfaces:
Component,ComponentPart,ComponentProperty,HasData,HasPosition,VisibleProperty
Representation of rectangular (cartesian) coordinate system with X and Y axes. There could be one or more
X and Y axes.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final BordergetBorder(boolean create) Get the border.voidSet the border.voidSet the size in such a way that the size of the coordinate system includes labels too.voidvalidate()This method is invoked bySOChartto check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.CoordinateSystem
add, addAxis, addParts, declareData, getAxis, getPosition, remove, removeAxis, setPositionMethods inherited from class com.storedobject.chart.VisiblePart
isVisible, setVisibleMethods 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, getId, getName, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerialMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
RectangularCoordinate
-
-
Method Details
-
validate
Description copied from interface:ComponentPartThis method is invoked bySOChartto check if the component or part is valid or not.- Specified by:
validatein interfaceComponentPart- Overrides:
validatein classCoordinateSystem- Throws:
ChartException- Raises exception if the component or part is not valid.
-
getBorder
Get the border.- Parameters:
create- Whether to create if not exists or not.- Returns:
- Border.
-
setBorder
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classAbstractPart- Parameters:
sb- Encoded JSON string to be appended to this.
-
sizeIncludesLabels
public void sizeIncludesLabels()Set the size in such a way that the size of the coordinate system includes labels too.
-