Package com.storedobject.chart
Class Axis.PointerLabel
java.lang.Object
com.storedobject.chart.TextStyle
com.storedobject.chart.AbstractLabel
com.storedobject.chart.Axis.PointerLabel
- All Implemented Interfaces:
ComponentProperty,VisibleProperty
- Enclosing class:
Axis
Represents the label displayed by the axis-pointer.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.final intGet the precision for showing the value (Applicable to numeric values).voidsetPrecision(int precision) Set the precision for showing the value (Applicable to numeric values).Methods inherited from class com.storedobject.chart.AbstractLabel
getGap, getGapName, isVisible, setGap, setVisibleMethods inherited from class com.storedobject.chart.TextStyle
getAlignment, getBackground, getBorder, getColor, getFontStyle, getPadding, getRichTextStyle, getTextBorder, setAlignment, setBackground, setBorder, setColor, setFontStyle, setPadding, setRichTextStyle, setTextBorderMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
PointerLabel
public PointerLabel()Constructor.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classAbstractLabel- Parameters:
sb- Encoded JSON string to be appended to this.
-
getPrecision
public final int getPrecision()Get the precision for showing the value (Applicable to numeric values).- Returns:
- Precision (Number of digits). A value of -1 means it will be determined automatically.
-
setPrecision
public void setPrecision(int precision) Set the precision for showing the value (Applicable to numeric values).- Parameters:
precision- Precision (Number of digits). A value of -1 means it will be determined automatically.
-