Package com.storedobject.chart
Class SankeyData.Node
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.ComposedPart
com.storedobject.chart.SankeyData.Node
- All Implemented Interfaces:
ComponentPart,ComponentProperty,HasAnimation,HasEmphasis,HasItemStyle,HasLabel,HasPadding,HasPolarProperty,HasPosition,VisibleProperty
- Enclosing class:
SankeyData
Sankey data node class.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.This is invoked to determine the class of the label to create.getName()Get the name of the node.protected booleanhasId()Whether Id needs to be sent as part of the JSON or not.voidsetDepth(int depth) Set the depth of the node.voidSet the value of the node.Methods inherited from class com.storedobject.chart.ComposedPart
getAnimation, getEmphasis, getItemStyle, getLabel, getPadding, getPolarProperty, getPosition, isVisible, setAnimation, setEmphasis, setItemStyle, setLabel, setPadding, setPolarProperty, setPosition, setVisible, validateMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getLabelTag, getSerial, getZ, hashCode, 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.HasPolarProperty
setHoleRadius, setRadiusMethods inherited from interface com.storedobject.chart.VisibleProperty
hide, show
-
Constructor Details
-
Node
-
-
Method Details
-
hasId
protected boolean hasId()Description copied from class:AbstractPartWhether Id needs to be sent as part of the JSON or not.- Overrides:
hasIdin classAbstractPart- Returns:
- True/false.
-
getName
Get the name of the node.- Specified by:
getNamein interfaceComponentPart- Overrides:
getNamein classAbstractPart- Returns:
- Name of the node.
-
setValue
Set the value of the node.- Parameters:
value- The value of the node, which determines the height of the node in horizontal orientation or width in the vertical orientation.
-
setDepth
public void setDepth(int depth) Set the depth of the node.- Parameters:
depth- The layer of the node, value starts from 0.
-
encodeJSON
Description copied from interface:ComponentPropertyEncode the JSON string with the properties of this.- Specified by:
encodeJSONin interfaceComponentProperty- Overrides:
encodeJSONin classComposedPart- Parameters:
sb- Encoded JSON string to be appended to this.
-
getLabelClass
Description copied from class:ComposedPartThis is invoked to determine the class of the label to create. The class should have a default constructor.- Overrides:
getLabelClassin classComposedPart- Returns:
- Label.
-