|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.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 LabelLayoutparam - the model parameter that describes the current position of the LabelLayoutbox - the bounds of this LabelLayoutnode - 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 LabelLayoutparam - the model parameter that describes the current position of the LabelLayoutorientedBox - the oriented bounds of this LabelLayoutnode - the node associated with this LabelLayout| Method Detail |
|---|
public YRectangle getBox()
LabelLayout
getBox in interface LabelLayoutpublic OrientedRectangle getOrientedBox()
LabelLayoutup vector of the rectangle encodes the orientation of the label.
getOrientedBox in interface LabelLayoutpublic NodeLabelModel getLabelModel()
NodeLabelLayout
getLabelModel in interface NodeLabelLayoutNodeLabelModel associated with this NodeLabelLayoutpublic void setModelParameter(java.lang.Object parameter)
LabelLayout
setModelParameter in interface LabelLayoutparameter - the label model parameterpublic java.lang.Object getModelParameter()
LabelLayout
getModelParameter in interface LabelLayoutLabelLayout.setModelParameter(Object)public Node getNode()
|
© Copyright 2000-2025, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||