com.sparsity.sparksee.gdb
Class NodeExport

java.lang.Object
  extended by com.sparsity.sparksee.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 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.
 
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.


setColorRGB

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

Parameters:
color - The node color.

setHeight

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

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

getFontSize

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

Returns:
The node label font size.

setDefaults

public void setDefaults()
Sets to default values.


getColorRGB

public int getColorRGB()
Gets the node color.

Returns:
The node color.

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

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.

setLabel

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

Parameters:
label - [in] The node 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 node.

Parameters:
c - New value.

getLabel

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

Returns:
The node label.

getHeight

public int getHeight()
Gets the node height.

Returns:
The node height in pixels.

setLabelColorRGB

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

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

setWidth

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

Parameters:
width - The node width in pixels.

setShape

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

Parameters:
shape - [in] The node shape.

setFit

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

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

setFontSize

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

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

setLabelColor

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

Parameters:
c - New value.