y.layout
Class DefaultNodeLabelLayout

java.lang.Object
  |
  +--y.layout.DefaultNodeLabelLayout
All Implemented Interfaces:
LabelLayout, NodeLabelLayout

public class DefaultNodeLabelLayout
extends Object
implements NodeLabelLayout

This class is the default implemtation for the NodeLabelLayout.


Constructor Summary
DefaultNodeLabelLayout(NodeLabelModel model, Object param, YRectangle box, Node node)
           
 
Method Summary
 YRectangle getBox()
          Returns the bounding box of the label
 NodeLabelModel getLabelModel()
          Returns the node label model associated with this label layout
 Object getModelParameter()
          Returns the label model parameter that describes the position of this label.
 Node getNode()
           
 void setModelParameter(Object param)
          Sets the label model parameter that describes the position of this label.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultNodeLabelLayout

public DefaultNodeLabelLayout(NodeLabelModel model,
                              Object param,
                              YRectangle box,
                              Node node)
Method Detail

getBox

public YRectangle getBox()
Description copied from interface: LabelLayout
Returns the bounding box of the label

Specified by:
getBox in interface LabelLayout

getLabelModel

public NodeLabelModel getLabelModel()
Description copied from interface: NodeLabelLayout
Returns the node label model associated with this label layout

Specified by:
getLabelModel in interface NodeLabelLayout

setModelParameter

public void setModelParameter(Object param)
Description copied from interface: LabelLayout
Sets the label model parameter that describes the position of this label.

Specified by:
setModelParameter in interface LabelLayout

getModelParameter

public Object getModelParameter()
Description copied from interface: LabelLayout
Returns the label model parameter that describes the position of this label.

Specified by:
getModelParameter in interface LabelLayout

getNode

public Node getNode()

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

2003