Package com.storedobject.chart
Class Axis.Pointer
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.VisiblePart
com.storedobject.chart.Axis.Pointer
- All Implemented Interfaces:
ComponentPart,ComponentProperty,VisibleProperty
- Enclosing class:
Axis
Represents the axis-pointer shown by the axis. (By default, no axis-pointer will be shown. However,
if you create one via
Axis.getPointer(boolean), it will be displayed).- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final Axis.PointerHandlegetHandle(boolean create) Get the pointer-handle.final Axis.PointerLabelgetLabel(boolean create) Get the label of the pointer.getLineStyle(boolean create) Get the line-style of the pointer.final ShadowgetShadow(boolean create) Get the shadow-style of the pointer.getSnap()Get the snap attribute.getType()Get the type of the pointer.voidsetHandle(Axis.PointerHandle handle) Set the pointer-handle.voidsetLabel(Axis.PointerLabel label) Set the label for the pointer.voidsetLineStyle(LineStyle lineStyle) Set the line-style of the pointer.voidSet the shadow-style of the pointer.voidSet the snap attribute.voidsetType(Axis.PointerType type) Set the type of the pointer.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
-
Pointer
public Pointer()Constructor.
-
-
Method Details
-
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.
-
getType
-
setType
Set the type of the pointer.- Parameters:
type- Pointer-type.
-
getSnap
Get the snap attribute. This will determine whether to snap to point automatically or not. The default value is auto-determined. This feature usually makes sense in value axis and time axis, where tiny points can be sought automatically.- Returns:
- True/false or
nullif not set (means default).
-
setSnap
-
getLabel
Get the label of the pointer.- Parameters:
create- Whether to create if not exists or not.- Returns:
- Pointer label.
-
setLabel
Set the label for the pointer.- Parameters:
label- Pointer label.
-
getLineStyle
Get the line-style of the pointer.- Parameters:
create- Whether to create if not exists or not.- Returns:
- Line-style.
-
setLineStyle
Set the line-style of the pointer.- Parameters:
lineStyle- Line-style.
-
getShadow
Get the shadow-style of the pointer.- Parameters:
create- Whether to create if not exists or not.- Returns:
- Shadow.
-
setShadow
Set the shadow-style of the pointer.- Parameters:
shadow- Shadow.
-
getHandle
Get the pointer-handle.- Parameters:
create- Whether to create if not exists or not.- Returns:
- Pointer-handle.
-
setHandle
Set the pointer-handle.- Parameters:
handle- Pointer-handle.
-