public class EdgeExport
extends java.lang.Object
Some properties may be ignored depending on the exportation type.
Default values are:
Label: "" (empty string).
As directed: TRUE.
Color: 13882323 (OxD3D3D3, Light gray).
Label color: 0 (Ox000000, Black).
Width: 5px.
Font size: 10.
Constructor and Description |
---|
EdgeExport()
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
asDirected()
Gets if the edge should be managed as directed.
|
java.awt.Color |
getColor()
Gets the color of the edge.
|
int |
getColorRGB()
Gets the edge color.
|
int |
getFontSize()
Gets the edge label font size.
|
java.lang.String |
getLabel()
Gets the edge label.
|
java.awt.Color |
getLabelColor()
Gets the color of the label.
|
int |
getLabelColorRGB()
Gets the edge label color.
|
int |
getWidth()
Gets the edge width.
|
void |
setAsDirected(boolean directed)
Sets if the edge should be managed as directed.
|
void |
setColor(java.awt.Color c)
Sets the color of the edge.
|
void |
setColorRGB(int color)
Sets the edge color.
|
void |
setDefaults()
Sets to default values.
|
void |
setFontSize(int size)
Sets the edge label font size.
|
void |
setLabel(java.lang.String label)
Sets the edge label.
|
void |
setLabelColor(java.awt.Color c)
Sets the color of the label.
|
void |
setLabelColorRGB(int color)
Sets the edge label color.
|
void |
setWidth(int width)
Sets the edge width.
|
public void setAsDirected(boolean directed)
directed
- [in] If TRUE, use as directed, otherwise use as undirected.public int getLabelColorRGB()
public void setLabel(java.lang.String label)
label
- [in] The edge label.public void setWidth(int width)
width
- [in] The edge width.public void setColorRGB(int color)
color
- [in] The edge color.public void setFontSize(int size)
size
- [in] The edge label font size.public java.awt.Color getLabelColor()
public java.awt.Color getColor()
public void setLabelColorRGB(int color)
color
- [in] The edge label color.public int getColorRGB()
public int getFontSize()
public void setDefaults()
public void setColor(java.awt.Color c)
c
- New value.public java.lang.String getLabel()
public void setLabelColor(java.awt.Color c)
c
- New value.public int getWidth()
public boolean asDirected()
TRUE is the default value. If TRUE, use as directed, otherwise use as undirected.