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 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.
 
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.


setColorRGB

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

Parameters:
color - [in] The edge color.

setAsDirected

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

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

getFontSize

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

Returns:
The edge label font size.

setDefaults

public void setDefaults()
Sets to default values.


getColorRGB

public int getColorRGB()
Gets the edge color.

Returns:
The edge color.

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.

setLabel

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

Parameters:
label - [in] The edge label.

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.

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.

getLabel

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

Returns:
The edge label.

setLabelColorRGB

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

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

setWidth

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

Parameters:
width - [in] The edge width.

setFontSize

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

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

setLabelColor

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

Parameters:
c - New value.