Package com.storedobject.chart
Class Axis.PointerHandle
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.VisiblePart
com.storedobject.chart.Axis.PointerHandle
- All Implemented Interfaces:
ComponentPart
,ComponentProperty
- Enclosing class:
Axis
Represent the handle that can be used with axis-pointer. (This is useful mainly for touch-devices).
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Encode the JSON string with the properties of this.getColor()
Get the color of the handle.int
getGap()
Set the gap between the axis and the handle.int
Get the height in pixels.final Shadow
getShadow
(boolean create) Get the shadow-style of the pointer-handle.int
getWidth()
Get the width in pixels.void
setColor
(AbstractColor color) Set the color of the handle.void
setGap
(int gap) Set the gap between the axis and handle.void
setHeight
(int height) Set the height in pixels.void
Set the shadow-style of the pointer-handle.void
setSize
(int size) Set the size in pixes (setting to both width and height).void
setWidth
(int width) Set the width in pixels.Methods inherited from class com.storedobject.chart.VisiblePart
hide, show, validate
Methods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getName, getSerial, getZ, hashCode, hasId, setSerial, setZ
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, setName, setRenderingIndex
-
Constructor Details
-
Method Details
-
encodeJSON
Description copied from interface:ComponentProperty
Encode the JSON string with the properties of this.- Specified by:
encodeJSON
in interfaceComponentProperty
- Overrides:
encodeJSON
in classVisiblePart
- Parameters:
sb
- Encoded JSON string to be appended to this.
-
getWidth
public int getWidth()Get the width in pixels.- Returns:
- Width.
-
setWidth
public void setWidth(int width) Set the width in pixels.- Parameters:
width
- Width.
-
getHeight
public int getHeight()Get the height in pixels.- Returns:
- Height.
-
setHeight
public void setHeight(int height) Set the height in pixels.- Parameters:
height
- Height.
-
setSize
public void setSize(int size) Set the size in pixes (setting to both width and height).- Parameters:
size
- Size in pixels.
-
getGap
public int getGap()Set the gap between the axis and the handle.- Returns:
- Gap in pixels.
-
setGap
public void setGap(int gap) Set the gap between the axis and handle.- Parameters:
gap
- Gap in pixels.
-
getColor
-
setColor
-
getShadow
Get the shadow-style of the pointer-handle.- Parameters:
create
- Whether to create if not exists or not.- Returns:
- Shadow.
-
setShadow
Set the shadow-style of the pointer-handle.- Parameters:
shadow
- Shadow.
-