|
Search this API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecty.layout.EdgeOppositeNodeLabelModel
public class EdgeOppositeNodeLabelModel
A node label model that sets the labels at the opposite side of the outgoing edges of a node.
| Constructor Summary | |
|---|---|
EdgeOppositeNodeLabelModel(LayoutGraph g,
Node n)
|
|
| Method Summary | |
|---|---|
Object |
createModelParameter(OrientedRectangle labelBounds,
NodeLayout nodeLayout)
Creates a model parameter that represents the given node label context best within this model. |
Object |
getDefaultParameter()
Returns the default position, this is offset (0,0) |
YList |
getLabelCandidates(NodeLabelLayout nl,
NodeLayout nodeLayout)
Returns a list of candidate positions for the label. |
OrientedRectangle |
getLabelPlacement(YDimension labelSize,
NodeLayout nodeLayout,
Object param)
Returns the oriented position and bounds for a label of the specified size. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public EdgeOppositeNodeLabelModel(LayoutGraph g,
Node n)
| Method Detail |
|---|
public Object getDefaultParameter()
getDefaultParameter in interface NodeLabelModelNodeLabelModel.getLabelPlacement(YDimension, NodeLayout, Object) method.
public OrientedRectangle getLabelPlacement(YDimension labelSize,
NodeLayout nodeLayout,
Object param)
getLabelPlacement in interface NodeLabelModellabelSize - the size of the label.nodeLayout - the geometric description of the labeled node.param - not used by this model
public Object createModelParameter(OrientedRectangle labelBounds,
NodeLayout nodeLayout)
NodeLabelModel
createModelParameter in interface NodeLabelModellabelBounds - The bounds of the label for which a parameter representation is sought.nodeLayout - The layout of the node to which the label belongs.
NodeLabelModel.getLabelPlacement(YDimension, NodeLayout, Object) method.
public YList getLabelCandidates(NodeLabelLayout nl,
NodeLayout nodeLayout)
getLabelCandidates in interface NodeLabelModelnl - The label layout for which candidates should be generated.nodeLayout - The layout of the node to which the label belongs.
NodeLabelCandidate objects.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||