Search this API

y.layout
Class LabelLayoutImpl

java.lang.Object
  extended by y.layout.LabelLayoutImpl
All Implemented Interfaces:
LabelLayout
Direct Known Subclasses:
EdgeLabelLayoutImpl, NodeLabelLayoutImpl

public class LabelLayoutImpl
extends Object
implements LabelLayout

This class is a default implementation of the LabelLayout interface.


Constructor Summary
LabelLayoutImpl()
           
 
Method Summary
 YRectangle getBox()
          Returns the bounding box of the label.
 Object getModelParameter()
          Returns the label model parameter that describes the position of this label.
 OrientedRectangle getOrientedBox()
          Returns the box of the label
 void setBox(YRectangle b)
          Sets the bounding box of the label.
 void setModelParameter(Object param)
          Sets the label model parameter that describes the position of this label.
 void setOrientedBox(OrientedRectangle orientedBox)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LabelLayoutImpl

public LabelLayoutImpl()
Method Detail

getOrientedBox

public OrientedRectangle getOrientedBox()
Description copied from interface: LabelLayout
Returns the box of the label

Specified by:
getOrientedBox in interface LabelLayout

setOrientedBox

public void setOrientedBox(OrientedRectangle orientedBox)

getBox

public YRectangle getBox()
Returns the bounding box of the label.

Specified by:
getBox in interface LabelLayout

setBox

public void setBox(YRectangle b)
Sets the bounding box of the label.


getModelParameter

public Object getModelParameter()
Returns the label model parameter that describes the position of this label.

Specified by:
getModelParameter in interface LabelLayout

setModelParameter

public void setModelParameter(Object param)
Sets the label model parameter that describes the position of this label.

Specified by:
setModelParameter in interface LabelLayout

© Copyright 2000-2013,
yWorks GmbH.
All rights reserved.