com.vaadin.flow.component.charts.model.
Class Node
All Implemented Interfaces:
A collection of options for the individual nodes. The nodes in an org chart are auto-generated instances of Highcharts.Point, but options can be applied here and linked by the id.
See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
getColor()
getId()
getImage()
getLevel()
getName()
getTitle()
int
hashCode()
void
The color of the auto generated node.
void
setColorIndex
(Number colorIndex) The color index of the auto generated node, especially for use in styled mode.
void
An optional column index of where to place the node.
void
setDataLabels
(DataLabels dataLabels) Individual data label for each node.
void
setDescription
(String description) The job description for the node card, will be inserted by the default dataLabel.nodeFormatter.
void
The id of the auto-generated node, referring to the from or to setting of the link.
void
An image for the node card, will be inserted by the default dataLabel.nodeFormatter.
void
setLayout
(NodeLayout layout) Layout for the node's children.
void
An optional level index of where to place the node.
void
The name to display for the node in data labels and tooltips.
void
In a horizontal layout, the vertical offset of a node in terms of weight.
void
The job title for the node card, will be inserted by the default dataLabel.nodeFormatter.
-
Constructor Details
-
Node
public Node()Default constructor.
-
Node
Parameters:
id
- seesetId(String)
-
Node
Parameters:
id
- seesetId(String)
name
- seesetName(String)
-
Node
Parameters:
id
- seesetId(String)
name
- seesetName(String)
title
- seesetTitle(String)
-
-
Method Details
-
getColor
See Also:
-
setColor
The color of the auto generated node.
-
getColorIndex
See Also:
-
setColorIndex
The color index of the auto generated node, especially for use in styled mode.
-
getColumn
See Also:
-
setColumn
An optional column index of where to place the node. The default behaviour is to place it next to the preceding node. Note that this option name is counter intuitive in inverted charts, like for example an organization chart rendered top down. In this case the "columns" are horizontal.
-
getDataLabels
See Also:
-
setDataLabels
Individual data label for each node.
-
getDescription
See Also:
-
setDescription
The job description for the node card, will be inserted by the default dataLabel.nodeFormatter.
-
getId
See Also:
-
setId
The id of the auto-generated node, referring to the from or to setting of the link.
-
getImage
See Also:
-
setImage
An image for the node card, will be inserted by the default dataLabel.nodeFormatter.
-
getLayout
See Also:
-
setLayout
Layout for the node's children. If hanging, this node's children will hang below their parent, allowing a tighter packing of nodes in the diagram
-
getLevel
See Also:
-
setLevel
An optional level index of where to place the node. The default behaviour is to place it next to the preceding node. Alias of nodes.column, but in inverted sankeys and org charts, the levels are laid out as rows.
-
getName
See Also:
-
setName
The name to display for the node in data labels and tooltips. Use this when the name is different from the id. Where the id must be unique for each node, this is not necessary for the name
-
getOffset
See Also:
-
setOffset
In a horizontal layout, the vertical offset of a node in terms of weight. Positive values shift the node downwards, negative shift it upwards. In a vertical layout, like organization chart, the offset is horizontal. If a percentage string is given, the node is offset by the percentage of the node size plus nodePadding. Defaults to 0.
-
getTitle
See Also:
-
setTitle
The job title for the node card, will be inserted by the default dataLabel.nodeFormatter.
-
equals
-
hashCode
public int hashCode()
-