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 java.lang.Object

A yFiles FLEX client label data object.


Constructor Summary
Label()
           
Label(java.lang.String text, ILabelModelParameter modelParameter)
          Creates a new Label instance using the given label text and model parameters.
 
Method Summary
 ILabelModelParameter getLabelModelParameter()
          Gets the label model's parameter that determines the positioning of this label.
 java.lang.Object getOwner()
          Gets the owner 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.
 java.lang.String getText()
          Gets the text string associated with this label.
 int getZOrder()
          Gets the z-order used on client side to determine the rendering order of the label.
 void setLabelModelParameter(ILabelModelParameter labelModelParameter)
          Set the label model's parameter that determine the positioning of this label.
 void setOwner(java.lang.Object owner)
          Sets the owner 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(java.lang.String text)
          Sets the text string associated with this label.
 void setZOrder(int zOrder)
          Sets the z-order used on client side to determine the rendering order of the label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Label

public Label()

Label

public Label(java.lang.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 java.lang.String getText()
Gets the text string associated with this label.


setText

public void setText(java.lang.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()
Gets the label model's parameter that determines the positioning of this label.


getZOrder

public int getZOrder()
Gets the z-order used on client side to determine the rendering order of the label.


setZOrder

public void setZOrder(int zOrder)
Sets the z-order used on client side to determine the rendering order of the label.


getOwner

public java.lang.Object getOwner()
Gets the owner of this label. Either a Node or an Edge.

See Also:
Node, Edge

setOwner

public void setOwner(java.lang.Object owner)
Sets the owner of this label. Either a Node or an Edge.

See Also:
Node, Edge


Copyright © 2000-2013 yWorks GmbH. All rights reserved