Package com.storedobject.chart
Class AbstractLabel
java.lang.Object
com.storedobject.chart.TextStyle
com.storedobject.chart.AbstractLabel
- All Implemented Interfaces:
ComponentProperty,VisibleProperty
- Direct Known Subclasses:
Axis.PointerLabel,Label,TextLabel
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.intgetGap()Set the gap between the part and labels.protected StringName of the gap to be used when rendering (It is different when different parts are used).booleanChecks if this property is currently visible.voidsetGap(int gap) Set the gap between the part and labels.voidsetVisible(boolean visible) Sets the visibility of this property.Methods 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
-
AbstractLabel
public AbstractLabel()
-
-
Method Details
-
setVisible
public void setVisible(boolean visible) Description copied from interface:VisiblePropertySets the visibility of this property.- Specified by:
setVisiblein interfaceVisibleProperty- Parameters:
visible- A boolean indicating whether this property should be visible (true) or hidden (false).
-
isVisible
public boolean isVisible()Description copied from interface:VisiblePropertyChecks if this property is currently visible.- Specified by:
isVisiblein interfaceVisibleProperty- Returns:
- true if the property is visible, false otherwise.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classTextStyle- Parameters:
sb- Encoded JSON string to be appended to this.
-
getGapName
Name of the gap to be used when rendering (It is different when different parts are used).- Returns:
- Name of the gap.
-
getGap
public int getGap()Set the gap between the part and labels.- Returns:
- Gap in pixels.
-
setGap
public void setGap(int gap) Set the gap between the part and labels.- Parameters:
gap- Gap in pixels.
-