Package com.storedobject.chart
Class GraphData.Category
java.lang.Object
com.storedobject.chart.PointSymbol
com.storedobject.chart.GraphData.Category
- All Implemented Interfaces:
ComponentProperty
,VisibleProperty
- Enclosing class:
GraphData<N extends GraphData.Node>
Represents a specific category for a chart or graphical element, extending the functionality
of
PointSymbol
to include a category name. This class can encode the category information
into JSON format, including properties inherited from PointSymbol
.- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Encode the JSON string with the properties of this.Methods inherited from class com.storedobject.chart.PointSymbol
getOffset, getType, isVisible, offset, setHoverAnimation, setOffset, setSize, setSize, setType, setURL, setVisible, size, size
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
Category
Constructs a newCategory
with the specified name.- Parameters:
name
- The name of the category.
-
-
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 classPointSymbol
- Parameters:
sb
- Encoded JSON string to be appended to this.
-