|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object y.layout.DefaultNodeLabelLayout
public class DefaultNodeLabelLayout
DefaultNodeLabelLayout
is a default implementation of NodeLabelLayout
which holds layout
information about a node label.
Constructor Summary | |
---|---|
DefaultNodeLabelLayout(NodeLabelModel model,
java.lang.Object param,
OrientedRectangle orientedBox,
Node node)
Creates a new DefaultNodeLabelLayout instance describing the layout information of a rotated node label. |
|
DefaultNodeLabelLayout(NodeLabelModel model,
java.lang.Object param,
YRectangle box,
Node node)
Creates a new DefaultNodeLabelLayout instance describing the layout information of a node label. |
Method Summary | |
---|---|
YRectangle |
getBox()
Returns the bounding box of the label. |
NodeLabelModel |
getLabelModel()
Returns the label model that describes the valid locations for this label. |
java.lang.Object |
getModelParameter()
Returns the label model parameter that describes the position of this label. |
Node |
getNode()
Returns the node which is associated with this layout. |
OrientedRectangle |
getOrientedBox()
Returns the box of the label. |
void |
setModelParameter(java.lang.Object parameter)
Specifies 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 |
---|
public DefaultNodeLabelLayout(NodeLabelModel model, java.lang.Object param, YRectangle box, Node node)
DefaultNodeLabelLayout
instance describing the layout information of a node label.
model
- the label model for this LabelLayout
param
- the model parameter that describes the current position of the LabelLayout
box
- the bounds of this LabelLayout
node
- the node associated with this LabelLayout
public DefaultNodeLabelLayout(NodeLabelModel model, java.lang.Object param, OrientedRectangle orientedBox, Node node)
DefaultNodeLabelLayout
instance describing the layout information of a rotated node label.
model
- the label model for this LabelLayout
param
- the model parameter that describes the current position of the LabelLayout
orientedBox
- the oriented bounds of this LabelLayout
node
- the node associated with this LabelLayout
Method Detail |
---|
public YRectangle getBox()
LabelLayout
getBox
in interface LabelLayout
public OrientedRectangle getOrientedBox()
LabelLayout
up vector
of the rectangle encodes the orientation of the label.
getOrientedBox
in interface LabelLayout
public NodeLabelModel getLabelModel()
NodeLabelLayout
getLabelModel
in interface NodeLabelLayout
NodeLabelModel
associated with this NodeLabelLayout
public void setModelParameter(java.lang.Object parameter)
LabelLayout
setModelParameter
in interface LabelLayout
parameter
- the label model parameterpublic java.lang.Object getModelParameter()
LabelLayout
getModelParameter
in interface LabelLayout
LabelLayout.setModelParameter(Object)
public Node getNode()
|
© Copyright 2000-2022, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |