public class NodeSeriesItem extends AbstractConfigurationObject
NodeSeries
. Represents a link between the from and to
nodes.Constructor and Description |
---|
NodeSeriesItem()
Default constructor.
|
NodeSeriesItem(Node from,
Node to) |
Modifier and Type | Method and Description |
---|---|
String |
getClassName() |
Color |
getColor() |
Number |
getColorIndex() |
DataLabels |
getDataLabels() |
String |
getDescription() |
Node |
getFrom() |
String |
getId() |
Number |
getLabelrank() |
String |
getName() |
Boolean |
getOutgoing() |
Boolean |
getSelected() |
Node |
getTo() |
Number |
getWeight() |
void |
setClassName(String className)
An additional, individual class name for the data point's graphic
representation.
|
void |
setColor(Color color)
The color for the individual link.
|
void |
setColorIndex(Number colorIndex)
A specific color index to use for the point, so its graphic
representations are given the class name
highcharts-color-{n} . |
void |
setDataLabels(DataLabels dataLabels)
Individual data label for each point.
|
void |
setDescription(String description)
A description of the point to add to the screen reader information about
the point.
|
void |
setFrom(Node from) |
void |
setId(String id)
An id for the point.
|
void |
setLabelrank(Number labelrank)
The rank for this point's data label in case of collision.
|
void |
setName(String name)
The name of the point as shown in the legend, tooltip, dataLabels, etc.
|
void |
setOutgoing(Boolean outgoing)
Whether the link goes out of the system.
|
void |
setSelected(Boolean selected)
Whether the data point is selected initially.
|
void |
setTo(Node to) |
void |
setWeight(Number weight)
The weight of the link.
|
public NodeSeriesItem()
public NodeSeriesItem(Node from, Node to)
from
- see setFrom(Node)
to
- see setTo(Node)
public Node getFrom()
setFrom(Node)
public void setFrom(Node from)
from
- The node that the link runs from.public Node getTo()
setTo(Node)
public void setTo(Node to)
to
- The node that the link runs to.public String getClassName()
setClassName(String)
public void setClassName(String className)
An additional, individual class name for the data point's graphic representation.
public Color getColor()
setColor(Color)
public void setColor(Color color)
The color for the individual link. By default, the link color is
the same as the node it extends from. The series.fillOpacity
option also applies to the points, so when setting a specific link color,
consider setting the fillOpacity
to 1.
public Number getColorIndex()
setColorIndex(Number)
public void setColorIndex(Number colorIndex)
A specific color index to use for the point, so its graphic
representations are given the class name
highcharts-color-{n}
. In styled
mode this will change the color of the graphic. In non-styled mode,
the color by is set by the fill
attribute, so the change in
class name won't have a visual effect by default.
public DataLabels getDataLabels()
setDataLabels(DataLabels)
public void setDataLabels(DataLabels dataLabels)
Individual data label for each point. The options are the same as the ones for plotOptions.series.dataLabels.
public String getDescription()
setDescription(String)
public void setDescription(String description)
A description of the point to add to the screen reader information about the point.
public String getId()
setId(String)
public void setId(String id)
An id for the point. This can be used after render time to get a pointer
to the point object through chart.get()
.
public Number getLabelrank()
setLabelrank(Number)
public void setLabelrank(Number labelrank)
The rank for this point's data label in case of collision. If two data
labels are about to overlap, only the one with the highest
labelrank
will be drawn.
public String getName()
setName(String)
public void setName(String name)
The name of the point as shown in the legend, tooltip, dataLabels, etc.
public Boolean getOutgoing()
setOutgoing(Boolean)
public void setOutgoing(Boolean outgoing)
Whether the link goes out of the system.
public Boolean getSelected()
setSelected(Boolean)
public void setSelected(Boolean selected)
Whether the data point is selected initially.
public Number getWeight()
setWeight(Number)
public void setWeight(Number weight)
The weight of the link.
Copyright © 2021. All rights reserved.