Search this API

y.layout
Class DefaultNodeLabelLayout

java.lang.Object
  extended by y.layout.DefaultNodeLabelLayout
All Implemented Interfaces:
LabelLayout, NodeLabelLayout

public class DefaultNodeLabelLayout
extends Object
implements NodeLabelLayout

This class is the default implementation for the NodeLabelLayout.


Constructor Summary
DefaultNodeLabelLayout(NodeLabelModel model, Object param, OrientedRectangle orientedBox, Node node)
          Creates a new instance of DefaultNodeLabelLayout
DefaultNodeLabelLayout(NodeLabelModel model, Object param, YRectangle box, Node node)
          Creates a new instance of DefaultNodeLabelLayout
 
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 NodeLabelModel parameter that describes the position of the label layout
 Node getNode()
          Returns the node associated with this layout.
 OrientedRectangle getOrientedBox()
          Returns the box of the label
 void setModelParameter(Object param)
          Sets the NodeLabelModel parameter that describes the position of the label layout
 
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)
Creates a new instance of DefaultNodeLabelLayout

Parameters:
model - the NodeLabel model for this label layout
param - the NodeLabelModel parameter that describes the position of the label layout.
box - the bounds of this label layout

DefaultNodeLabelLayout

public DefaultNodeLabelLayout(NodeLabelModel model,
                              Object param,
                              OrientedRectangle orientedBox,
                              Node node)
Creates a new instance of DefaultNodeLabelLayout

Parameters:
model - the NodeLabel model for this label layout
param - the NodeLabelModel parameter that describes the position of the label layout.
orientedBox - the bounds of this label layout
Method Detail

getBox

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

Specified by:
getBox in interface LabelLayout

getOrientedBox

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

Specified by:
getOrientedBox 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)
Sets the NodeLabelModel parameter that describes the position of the label layout

Specified by:
setModelParameter in interface LabelLayout

getModelParameter

public Object getModelParameter()
Returns the NodeLabelModel parameter that describes the position of the label layout

Specified by:
getModelParameter in interface LabelLayout

getNode

public Node getNode()
Returns the node associated with this layout.


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