com.sparsity.sparksee.gdb
Class EdgeExport

java.lang.Object
  extended by com.sparsity.sparksee.gdb.EdgeExport

public class EdgeExport
extends java.lang.Object

Stores edge exporting values.

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.

Author:
Sparsity Technologies http://www.sparsity-technologies.com

Constructor Summary
EdgeExport()
          Creates a new instance.
 
Method Summary
 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 b)
          Sets if the edge should be managed as directed.
 void setColor(java.awt.Color c)
          Sets the color of the edge.
 void setColorRGB(int c)
          Sets the edge color.
 void setDefaults()
          Sets to default values.
 void setFontSize(int s)
          Sets the edge label font size.
 void setLabel(java.lang.String l)
          Sets the edge label.
 void setLabelColor(java.awt.Color c)
          Sets the color of the label.
 void setLabelColorRGB(int c)
          Sets the edge label color.
 void setWidth(int w)
          Sets the edge width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EdgeExport

public EdgeExport()
Creates a new instance.

Method Detail

getColor

public java.awt.Color getColor()
Gets the color of the edge.


setLabelColorRGB

public void setLabelColorRGB(int c)
Sets the edge label color.

Parameters:
c - [in] The edge label color.

getFontSize

public int getFontSize()
Gets the edge label font size.

Returns:
The edge label font size.

setWidth

public void setWidth(int w)
Sets the edge width.

Parameters:
w - [in] The edge width.

setDefaults

public void setDefaults()
Sets to default values.


getColorRGB

public int getColorRGB()
Gets the edge color.

Returns:
The edge color.

setFontSize

public void setFontSize(int s)
Sets the edge label font size.

Parameters:
s - [in] The edge label font size.

setAsDirected

public void setAsDirected(boolean b)
Sets if the edge should be managed as directed.

Parameters:
b - [in] If TRUE, use as directed, otherwise use as undirected.

getLabelColorRGB

public int getLabelColorRGB()
Gets the edge label color.

Returns:
The edge label color.

getWidth

public int getWidth()
Gets the edge width.

Returns:
The edge width.

getLabelColor

public java.awt.Color getLabelColor()
Gets the color of the label.


setColor

public void setColor(java.awt.Color c)
Sets the color of the edge.

Parameters:
c - New value.

setLabel

public void setLabel(java.lang.String l)
Sets the edge label.

Parameters:
l - [in] The edge label.

asDirected

public boolean asDirected()
Gets if the edge should be managed as directed.

TRUE is the default value. If TRUE, use as directed, otherwise use as undirected.

Returns:
The edge direction.

setColorRGB

public void setColorRGB(int c)
Sets the edge color.

Parameters:
c - [in] The edge color.

getLabel

public java.lang.String getLabel()
Gets the edge label.

Returns:
The edge label.

setLabelColor

public void setLabelColor(java.awt.Color c)
Sets the color of the label.

Parameters:
c - New value.