com.yworks.yfiles.server.graphml.flexio.data
Class Label

java.lang.Object
  extended bycom.yworks.yfiles.server.graphml.flexio.data.Label

public class Label
extends Object

A yFiles FLEX client label data object.


Constructor Summary
Label(String text, ILabelModelParameter modelParameter)
          Creates a new Label instance using the given label text and model parameters.
 
Method Summary
 ILabelModelParameter getLabelModelParameter()
          Get the label model's parameter that determine the positioning of this label.
 YDimension getPreferredSize()
          Gets the preferred size of this label.
 ILabelStyle getStyle()
          Returns the style that determines for the visual representation of this label.
 String getText()
          Gets the text string associated with this label.
 void setLabelModelParameter(ILabelModelParameter labelModelParameter)
          Set the label model's parameter that determine the positioning of this label.
 void setPreferredSize(YDimension preferredSize)
          Sets the preferred size of this label.
 void setStyle(ILabelStyle style)
          Sets the style that determines for the visual representation of this label.
 void setText(String text)
          Sets the text string associated with this label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Label

public Label(String text,
             ILabelModelParameter modelParameter)
Creates a new Label instance using the given label text and model parameters.

Parameters:
text - The label text
modelParameter - The model parameters that determine the label's placement.
Method Detail

getText

public String getText()
Gets the text string associated with this label.


setText

public void setText(String text)
Sets the text string associated with this label.


getPreferredSize

public YDimension getPreferredSize()
Gets the preferred size of this label.


setPreferredSize

public void setPreferredSize(YDimension preferredSize)
Sets the preferred size of this label.


setLabelModelParameter

public void setLabelModelParameter(ILabelModelParameter labelModelParameter)
Set the label model's parameter that determine the positioning of this label.


getStyle

public ILabelStyle getStyle()
Returns the style that determines for the visual representation of this label.


setStyle

public void setStyle(ILabelStyle style)
Sets the style that determines for the visual representation of this label.


getLabelModelParameter

public ILabelModelParameter getLabelModelParameter()
Get the label model's parameter that determine the positioning of this label.



Copyright © 2000-2007 yWorks GmbH. All rights reserved