public class NodeSeries extends AbstractSeries
Constructor and Description |
---|
NodeSeries() |
Modifier and Type | Method and Description |
---|---|
NodeSeriesItem |
add(Node from,
Node to)
Adds both nodes and links then in the series.
|
void |
add(NodeSeriesItem nodeSeriesItem)
Adds a data item.
|
void |
addNode(Node node)
Adds a node to the chart.
|
List<NodeSeriesItem> |
getData() |
Set<Node> |
getNodes() |
void |
remove(Node node)
Removes the node.
|
void |
remove(NodeSeriesItem nodeSeriesItem)
Removes the nodeSeriesItem.
|
getColorAxis, getConfiguration, getId, getName, getPlotOptions, getStack, getxAxis, getyAxis, isVisible, setColorAxis, setConfiguration, setId, setName, setPlotOptions, setStack, setVisible, setVisible, setxAxis, setyAxis, setyAxis, updateSeries
public void add(NodeSeriesItem nodeSeriesItem)
addNode(Node)
nodeSeriesItem
- item to be added.IllegalArgumentException
- if the nodeSeriesItem is null or if
either to or from nodes null or have null ids.public NodeSeriesItem add(Node from, Node to)
from
- see NodeSeriesItem.setFrom(Node)
to
- see NodeSeriesItem.setTo(Node)
NodeSeriesItem
created.public void addNode(Node node)
add(NodeSeriesItem)
.node
- Node
to be added. Not null.IllegalArgumentException
- if the node is null or if its id is null.public void remove(NodeSeriesItem nodeSeriesItem)
remove(Node)
nodeSeriesItem
- item to be removed.public void remove(Node node)
remove(NodeSeriesItem)
node
- item to be removed.public List<NodeSeriesItem> getData()
Copyright © 2021. All rights reserved.