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,VisibleProperty
- Enclosing class:
Axis
Represent the handle that can be used with an axis-pointer. (This is useful mainly for touch-devices).
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.getColor()Get the color of the handle.intgetGap()Set the gap between the axis and the handle.intGet the height in pixels.final ShadowgetShadow(boolean create) Get the shadow-style of the pointer-handle.intgetWidth()Get the width in pixels.voidsetColor(AbstractColor color) Set the color of the handle.voidsetGap(int gap) Set the gap between the axis and handle.voidsetHeight(int height) Set the height in pixels.voidSet the shadow-style of the pointer-handle.voidsetSize(int size) Set the size in pixes (setting to both width and height).voidsetWidth(int width) Set the width in pixels.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
-
PointerHandle
public PointerHandle()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.
-
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.
-