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 TypeMethodDescriptionvoidEncode 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, sizeMethods 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
-
Category
Constructs a newCategorywith the specified name.- Parameters:
name- The name of the category.
-
-
Method Details
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classPointSymbol- Parameters:
sb- Encoded JSON string to be appended to this.
-