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

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

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

Stores edge exporting values.


Nested Class Summary
static class Export.EdgeExport.Direction
          Edge direction.
 
Constructor Summary
Export.EdgeExport()
          Creates a new instance.
 
Method Summary
 java.awt.Color getColor()
          Gets the edge color.
 java.awt.Color getColorLabel()
          Gets the edge label color.
 Export.EdgeExport.Direction getDirection()
          Gets the edge direction.
 short getFontSize()
          Gets the edge label font size.
 java.lang.String getLabel()
          Gets the edge label.
 short getWidth()
          Gets the edge width.
 void setColor(java.awt.Color color)
          Sets the edge color.
 void setColorLabel(java.awt.Color colorLabel)
          Sets the edge label color.
 void setDirection(Export.EdgeExport.Direction direction)
          Sets the edge direction.
 void setFontSize(short fontSize)
          Sets the edge label font size.
 void setLabel(java.lang.String label)
          Sets the edge label.
 void setWidth(short 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

Export.EdgeExport

public Export.EdgeExport()
Creates a new instance.

Method Detail

getLabel

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

null is the default value, that is no label.

Returns:
The edge label.

setLabel

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

Parameters:
label - The edge label.

getDirection

public Export.EdgeExport.Direction getDirection()
Gets the edge direction.

Export.EdgeExport.Direction.DIRECTED is the default value.

Returns:
The edge direction.

setDirection

public void setDirection(Export.EdgeExport.Direction direction)
Sets the edge direction.

Parameters:
direction - The edge direction.

getColor

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

Light gray is the default value.

Returns:
The edge color.

setColor

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

Parameters:
color - The edge color.

getColorLabel

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

Black is the default value.

Returns:
The edge label color.

setColorLabel

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

Parameters:
colorLabel - The edge label color.

getWidth

public short getWidth()
Gets the edge width.

5px is the default value.

Returns:
The edge width.

setWidth

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

Parameters:
width - The edge width.

getFontSize

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

10 is the default value.

Returns:
The edge label font size.

setFontSize

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

Parameters:
fontSize - The edge label font size.