org.dishevelled.graph.io.ygraphml
Class NodeLabel

java.lang.Object
  extended by org.dishevelled.graph.io.ygraphml.NodeLabel

public final class NodeLabel
extends Object

Node label.

Version:
$Revision$ $Date$
Author:
Michael Heuer

Constructor Summary
NodeLabel(boolean visible, String alignment, String fontFamily, int fontSize, String fontStyle, String textColor, String modelName, String modelPosition, String autoSizePolicy, String text)
          Create a new node label from the specified parameters.
 
Method Summary
 String getAlignment()
          Return the alignment for this node label.
 String getAutoSizePolicy()
          Return the auto size policy for this node label.
 String getFontFamily()
          Return the font family for this node label.
 int getFontSize()
          Return the font size for this node label.
 String getFontStyle()
          Return the font style for this node label.
 String getModelName()
          Return the model name for this node label.
 String getModelPosition()
          Return the model position for this node label.
 String getText()
          Return the text for this node label.
 String getTextColor()
          Return the text color for this node label.
 boolean isVisible()
          Return true if this node label is visible.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeLabel

public NodeLabel(boolean visible,
                 String alignment,
                 String fontFamily,
                 int fontSize,
                 String fontStyle,
                 String textColor,
                 String modelName,
                 String modelPosition,
                 String autoSizePolicy,
                 String text)
Create a new node label from the specified parameters.

Parameters:
visible - true if this node label is visible
alignment - alignment for this node label, must not be null
fontFamily - font family for this node label, must not be null
fontSize - font size for this node label
fontStyle - font style for this node label, must not be null
textColor - text color for this node label, must not be null
modelName - model name for this node label, must not be null
modelPosition - model position for this node label, must not be null
autoSizePolicy - auto size policy for this node label, must not be null
text - text for this node label, must not be null
Method Detail

isVisible

public boolean isVisible()
Return true if this node label is visible.

Returns:
true if this node label is visible

getAlignment

public String getAlignment()
Return the alignment for this node label. The alignment will not be null.

Returns:
the alignment for this node label

getFontFamily

public String getFontFamily()
Return the font family for this node label. The font family will not be null.

Returns:
the font family for this node label

getFontSize

public int getFontSize()
Return the font size for this node label.

Returns:
the font size for this node label

getFontStyle

public String getFontStyle()
Return the font style for this node label. The font style will not be null.

Returns:
the font style for this node label

getTextColor

public String getTextColor()
Return the text color for this node label. The text color will not be null.

Returns:
the text color for this node label

getModelName

public String getModelName()
Return the model name for this node label. The model name will not be null.

Returns:
the model name for this node label

getModelPosition

public String getModelPosition()
Return the model position for this node label. The model position will not be null.

Returns:
the model position for this node label

getAutoSizePolicy

public String getAutoSizePolicy()
Return the auto size policy for this node label. The auto size policy will not be null.

Returns:
the auto size policy for this node label

getText

public String getText()
Return the text for this node label. The text will not be null.

Returns:
the text for this node label


Copyright (c) 2008-2012 held jointly by the individual authors. Licensed under the GNU Lesser General Public License (LGPL).