com.sparsity.dex.gdb
Class NodeExport

java.lang.Object
  extended by com.sparsity.dex.gdb.NodeExport

public class NodeExport
extends java.lang.Object

Stores the node exporting values.

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.

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

Constructor Summary
NodeExport()
          Creates a new instance.
 
Method Summary
 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 c)
          Sets the node color.
 void setDefaults()
          Sets to default values.
 void setFit(boolean f)
          Sets the node fit property.
 void setFontSize(int s)
          Sets the node label font size.
 void setHeight(int h)
          Sets the node height.
 void setLabel(java.lang.String l)
          Sets the node label.
 void setLabelColor(java.awt.Color c)
          Sets the color of the label.
 void setLabelColorRGB(int c)
          Sets the node label color.
 void setShape(NodeShape s)
          Sets the node shape.
 void setWidth(int w)
          Gets the node width.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeExport

public NodeExport()
Creates a new instance.

Method Detail

getShape

public NodeShape getShape()
Gets the node shape.

Returns:
The node shape.

getColor

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


setLabelColorRGB

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

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

getFontSize

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

Returns:
The node label font size.

setWidth

public void setWidth(int w)
Gets the node width.

Parameters:
w - The node width in pixels.

setDefaults

public void setDefaults()
Sets to default values.


getColorRGB

public int getColorRGB()
Gets the node color.

Returns:
The node color.

setFontSize

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

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

setHeight

public void setHeight(int h)
Sets the node height.

Parameters:
h - [in] The node height in pixels.

isFit

public boolean isFit()
Gets whether the node size is fitted to the label or not.

Returns:
If TRUE, then the node size is fitted to the label, otherwise the size is fixed with the values of 'height' and 'width'.

setFit

public void setFit(boolean f)
Sets the node fit property.

Parameters:
f - [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'.

getLabelColorRGB

public int getLabelColorRGB()
Gets the node label color.

Returns:
The node label color.

getWidth

public int getWidth()
Gets the node width.

Returns:
The node width in pixels.

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

Parameters:
c - New value.

setLabel

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

Parameters:
l - [in] The node label.

setColorRGB

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

Parameters:
c - The node color.

getLabel

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

Returns:
The node label.

setShape

public void setShape(NodeShape s)
Sets the node shape.

Parameters:
s - [in] The node shape.

getHeight

public int getHeight()
Gets the node height.

Returns:
The node height in pixels.

setLabelColor

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

Parameters:
c - New value.