Package com.storedobject.chart
Class SankeyData
java.lang.Object
- All Implemented Interfaces:
AbstractDataProvider<SankeyData.Node>,ComponentPart,ComponentProperty,SankeyDataProvider,Serializable,Cloneable,Iterable<SankeyData.Node>,Collection<SankeyData.Node>,List<SankeyData.Node>,RandomAccess,SequencedCollection<SankeyData.Node>
A concrete implementation of
SankeyDataProvider as an ArrayList of SankeyData.Nodes. It detects
duplicate SankeyData.Nodes and circular references in SankeyData.Edges.- Author:
- Syam
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classClass that defines an edge between 2 Sankey nodes.static classSankey data node class.Nested classes/interfaces inherited from interface com.storedobject.chart.AbstractDataProvider
AbstractDataProvider.NumberComparator -
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddEdge(SankeyData.Edge edge) Add anSankeyData.Edge.getEdges()Get the edges.getNodes()Get the nodes.voidvalidate()This method is invoked bySOChartto check if the component or part is valid or not.Methods inherited from class com.storedobject.chart.AbstractData
asList, getDataType, getName, getSerial, setName, setSerial, streamMethods inherited from class java.util.ArrayList
add, add, addAll, addAll, addFirst, addLast, clear, clone, contains, ensureCapacity, equals, forEach, get, getFirst, getLast, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeFirst, removeIf, removeLast, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeMethods inherited from class java.util.AbstractCollection
containsAll, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.storedobject.chart.AbstractDataProvider
create, create, encode, encodeJSON, getComparator, getId, getMax, getMinMethods inherited from interface java.util.Collection
parallelStream, toArrayMethods inherited from interface com.storedobject.chart.ComponentPart
className, getRenderingIndex, getSerial, setName, setRenderingIndex, setSerialMethods inherited from interface java.util.List
containsAll, reversed
-
Constructor Details
-
SankeyData
-
-
Method Details
-
addEdge
Add anSankeyData.Edge.- Parameters:
edge-SankeyData.Edgeto be added. If theSankeyData.EdgecontainsSankeyData.Nodes that are not part of this, it will be automatically added.
-
getNodes
Description copied from interface:SankeyDataProviderGet the nodes. The stream should not contain duplicate node names.- Specified by:
getNodesin interfaceSankeyDataProvider- Returns:
- Nodes as a stream.
-
getEdges
Description copied from interface:SankeyDataProviderGet the edges. The stream should not contain edges with circular references.- Specified by:
getEdgesin interfaceSankeyDataProvider- Returns:
- Edges as a stream.
-
validate
Description copied from interface:ComponentPartThis method is invoked bySOChartto check if the component or part is valid or not.- Specified by:
validatein interfaceAbstractDataProvider<SankeyData.Node>- Specified by:
validatein interfaceComponentPart- Throws:
ChartException- Raises exception if the component or part is not valid.
-