Package com.storedobject.chart
Class SankeyData.Edge
java.lang.Object
com.storedobject.chart.AbstractPart
com.storedobject.chart.ComposedPart
com.storedobject.chart.SankeyData.Edge
- All Implemented Interfaces:
ComponentPart,ComponentProperty,HasAnimation,HasEmphasis,HasItemStyle,HasLabel,HasPadding,HasPolarProperty,HasPosition,VisibleProperty
- Enclosing class:
SankeyData
Class that defines an edge between 2 Sankey nodes.
- Author:
- Syam
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidEncode the JSON string with the properties of this.getFrom()Get the starting node of the edge.This is invoked to determine the class of the label to create.protected Stringfinal LineStylegetLineStyle(boolean create) Get line style.getTo()Get the ending node of the edge.protected booleanhasId()Whether Id needs to be sent as part of the JSON or not.final voidsetLineStyle(LineStyle lineStyle) Set the line style.voidSet the value of the edge.voidvalidate()This method is invoked bySOChartto check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.ComposedPart
getAnimation, getEmphasis, getItemStyle, getLabel, getPadding, getPolarProperty, getPosition, isVisible, setAnimation, setEmphasis, setItemStyle, setLabel, setPadding, setPolarProperty, setPosition, setVisibleMethods inherited from class com.storedobject.chart.AbstractPart
equals, getId, getName, 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
-
Edge
Constructor.- Parameters:
from- Starting node.to- Ending node.value- The value of edge, which decides the width of edge..
-
-
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.
-
getFrom
-
getTo
-
validate
Description copied from interface:ComponentPartThis method is invoked bySOChartto check if the component or part is valid or not.- Specified by:
validatein interfaceComponentPart- Overrides:
validatein classComposedPart- Throws:
ChartException- Raises exception if the component or part is not valid.
-
setValue
Set the value of the edge.- Parameters:
value- The value of edge, which decides the width of edge..
-
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.
-
getLabelTag
- Overrides:
getLabelTagin classAbstractPart
-
setLineStyle
Set the line style.- Parameters:
lineStyle- Line style.
-
getLineStyle
Get line style.- Parameters:
create- Passtrueif it needs to be created if not exists.- Returns:
- Line style.
-