|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.EdgeOppositeNodeLabelModel
A node label model that sets the labels at the opposite side of the outgoing edges of a node.
Nested Class Summary | |
class |
EdgeOppositeNodeLabelModel.ModelParameter
|
Constructor Summary | |
EdgeOppositeNodeLabelModel(LayoutGraph g,
Node n)
|
Method Summary | |
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. |
YPoint |
getLabelPlacement(YDimension labelSize,
NodeLayout nodeLayout,
Object param)
Returns the positions of the lower upper corner of the label with given parameter. |
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 NodeLabelModel
public YPoint getLabelPlacement(YDimension labelSize, NodeLayout nodeLayout, Object param)
getLabelPlacement
in interface NodeLabelModel
labelSize
- the size of the label.nodeLayout
- the geometric description of the labeled node.param
- an instance of Integer containing a vaild position.public YList getLabelCandidates(NodeLabelLayout nl, NodeLayout nodeLayout)
getLabelCandidates
in interface NodeLabelModel
|
© Copyright 2000-2003, yWorks GmbH. All rights reserved. 2003 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |