public class Node extends AbstractConfigurationObject
Constructor and Description |
---|
Node()
Default constructor.
|
Node(String id) |
Node(String id,
String name) |
Node(String id,
String name,
String title) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
Color |
getColor() |
Number |
getColorIndex() |
Number |
getColumn() |
DataLabels |
getDataLabels() |
String |
getDescription() |
String |
getId() |
String |
getImage() |
NodeLayout |
getLayout() |
Number |
getLevel() |
String |
getName() |
String |
getOffset() |
String |
getTitle() |
int |
hashCode() |
void |
setColor(Color color)
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 |
setColumn(Number column)
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 |
setId(String id)
The id of the auto-generated node, referring to the from or to setting of
the link.
|
void |
setImage(String image)
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 |
setLevel(Number level)
An optional level index of where to place the node.
|
void |
setName(String name)
The name to display for the node in data labels and tooltips.
|
void |
setOffset(String offset)
In a horizontal layout, the vertical offset of a node in terms of weight.
|
void |
setTitle(String title)
The job title for the node card, will be inserted by the default
dataLabel.nodeFormatter.
|
public Node()
public Node(String id)
id
- see setId(String)
public Node(String id, String name)
id
- see setId(String)
name
- see setName(String)
public Node(String id, String name, String title)
id
- see setId(String)
name
- see setName(String)
title
- see setTitle(String)
public Color getColor()
setColor(Color)
public void setColor(Color color)
public Number getColorIndex()
setColorIndex(Number)
public void setColorIndex(Number colorIndex)
public Number getColumn()
setColumn(Number)
public void setColumn(Number column)
public DataLabels getDataLabels()
setDataLabels(DataLabels)
public void setDataLabels(DataLabels dataLabels)
public String getDescription()
setDescription(String)
public void setDescription(String description)
public String getId()
setId(String)
public void setId(String id)
public String getImage()
setImage(String)
public void setImage(String image)
public NodeLayout getLayout()
setLayout(NodeLayout)
public void setLayout(NodeLayout layout)
public Number getLevel()
setLevel(Number)
public void setLevel(Number level)
public String getName()
setName(String)
public void setName(String name)
public String getOffset()
setOffset(String)
public void setOffset(String offset)
public String getTitle()
setTitle(String)
public void setTitle(String title)
Copyright © 2021. All rights reserved.