edu.upc.dama.dex.core
Class Export.NodeExport

java.lang.Object
  extended by edu.upc.dama.dex.core.Export.NodeExport
Enclosing interface:
Export

public static class Export.NodeExport
extends java.lang.Object

Stores the node exporting values.


Nested Class Summary
static class Export.NodeExport.Shape
          Node shape.
 
Constructor Summary
Export.NodeExport()
          Creates a new instance.
 
Method Summary
 java.awt.Color getColor()
          Gets the node color.
 java.awt.Color getColorLabel()
          Gets the node label color.
 short getFontSize()
          Gets the node label font size.
 short getHeight()
          Gets the node height.
 java.lang.String getLabel()
          Gets the node label.
 Export.NodeExport.Shape getShape()
          Gets the node shape.
 short getWidth()
          Gets the node width.
 boolean isFit()
          Gets whether the node size is fitted to the label or not.
 void setColor(java.awt.Color color)
          Sets the node color.
 void setColorLabel(java.awt.Color colorLabel)
          Sets the node label color.
 void setFit(boolean fit)
          Sets the node fit property.
 void setFontSize(short fontSize)
          Sets the node label font size.
 void setHeight(short height)
          Sets the node height.
 void setLabel(java.lang.String label)
          Sets the node label.
 void setShape(Export.NodeExport.Shape shape)
          Sets the node shape.
 void setWidth(short 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

Export.NodeExport

public Export.NodeExport()
Creates a new instance.

Method Detail

getLabel

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

null is the default value, that is no label.

Returns:
The node label.

setLabel

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

Parameters:
label - The node label.

getShape

public Export.NodeExport.Shape getShape()
Gets the node shape.

Default value is Export.NodeExport.Shape.BOX.

Returns:
The node shape.
See Also:
Export.NodeExport.Shape

setShape

public void setShape(Export.NodeExport.Shape shape)
Sets the node shape.

Parameters:
shape - The node shape.
See Also:
Export.NodeExport.Shape

getColor

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

0xa5c3f6 is the default value.

Returns:
The node color.

setColor

public void setColor(java.awt.Color color)
Sets the node color.

Parameters:
color - The node color.

getColorLabel

public java.awt.Color getColorLabel()
Gets the node label color.

Black is the default value.

Returns:
The node label color.

setColorLabel

public void setColorLabel(java.awt.Color colorLabel)
Sets the node label color.

Parameters:
colorLabel - The node label color.

getHeight

public short getHeight()
Gets the node height.

25px is the default value.

Returns:
The node height in pixels.

setHeight

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

Parameters:
height - The node height in pixels.

getWidth

public short getWidth()
Gets the node width.

25px is the default value.

Returns:
The node width in pixels.

setWidth

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

Parameters:
width - The node width in pixels.

isFit

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

true is the default value.

Returns:
If true, then the node size is fitted to the label (Export.NodeExport.height and Export.NodeExport.width will be ignored), otherwise the size is fixed with the values of Export.NodeExport.height and Export.NodeExport.width.

setFit

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

Parameters:
fit - If true, then the node size is fitted to the label(Export.NodeExport.height and Export.NodeExport.width will be ignored), otherwise the size is fixed with the values of Export.NodeExport.height and Export.NodeExport.width.

getFontSize

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

10 is the default value.

Returns:
The node label font size.

setFontSize

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

Parameters:
fontSize - The node label font size.