public class NodeExport
extends java.lang.Object
When 'fit' is set to TRUE, then 'height' and 'width' will be ignored.
Some properties may be ignored depending on the exportation type.
Default values are:
Label: "" (empty string).
Shape: Box.
Color: 10863606 (0xa5c3f6).
Label color: 0 (Ox000000, Black).
Height: 25px.
Width: 25px.
Fit: TRUE.
Font size: 10.
Constructor and Description |
---|
NodeExport()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.awt.Color |
getColor()
Gets the color of the node.
|
int |
getColorRGB()
Gets the node color.
|
int |
getFontSize()
Gets the node label font size.
|
int |
getHeight()
Gets the node height.
|
java.lang.String |
getLabel()
Gets the node label.
|
java.awt.Color |
getLabelColor()
Gets the color of the label.
|
int |
getLabelColorRGB()
Gets the node label color.
|
NodeShape |
getShape()
Gets the node shape.
|
int |
getWidth()
Gets the node width.
|
boolean |
isFit()
Gets whether the node size is fitted to the label or not.
|
void |
setColor(java.awt.Color c)
Sets the color of the node.
|
void |
setColorRGB(int color)
Sets the node color.
|
void |
setDefaults()
Sets to default values.
|
void |
setFit(boolean fit)
Sets the node fit property.
|
void |
setFontSize(int size)
Sets the node label font size.
|
void |
setHeight(int height)
Sets the node height.
|
void |
setLabel(java.lang.String label)
Sets the node label.
|
void |
setLabelColor(java.awt.Color c)
Sets the color of the label.
|
void |
setLabelColorRGB(int color)
Sets the node label color.
|
void |
setShape(NodeShape shape)
Sets the node shape.
|
void |
setWidth(int width)
Gets the node width.
|
public int getLabelColorRGB()
public void setLabel(java.lang.String label)
label
- [in] The node label.public void setWidth(int width)
width
- The node width in pixels.public void setColorRGB(int color)
color
- The node color.public void setFontSize(int size)
size
- [in] The node label font size.public void setHeight(int height)
height
- [in] The node height in pixels.public java.awt.Color getLabelColor()
public java.awt.Color getColor()
public NodeShape getShape()
public void setLabelColorRGB(int color)
color
- [in] The node label color.public boolean isFit()
public int getColorRGB()
public void setFit(boolean fit)
fit
- [in] If TRUE, then the node size is fitted to the label ('height' and 'width' will be ignored), otherwise the size is fixed with the values of 'height' and 'width'.public int getFontSize()
public void setDefaults()
public void setColor(java.awt.Color c)
c
- New value.public java.lang.String getLabel()
public int getHeight()
public void setLabelColor(java.awt.Color c)
c
- New value.public int getWidth()
public void setShape(NodeShape shape)
shape
- [in] The node shape.