|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--y.layout.FreeEdgeLabelModel
An edge label model that allows placement of labels at a fixed offset from the source intersection point of the node.
Nested Class Summary | |
static class |
FreeEdgeLabelModel.ModelParameter
The model parameters for the FreeEdgeLabelModel . |
Constructor Summary | |
FreeEdgeLabelModel()
|
Method Summary | |
Object |
createModelParameter(YRectangle labelBounds,
EdgeLayout edgeLayout,
NodeLayout sourceNode,
NodeLayout targetNode)
Returns a model parameter that represents the given edge label context. |
Object |
getDefaultParameter()
Returns the default parameter. |
YList |
getLabelCandidates(EdgeLabelLayout label,
EdgeLayout edgeLayout,
NodeLayout sourceNode,
NodeLayout targetNode)
Returns exactly one label candidate that corresponds to the actual label layout of the given label. |
YPoint |
getLabelPlacement(YDimension labelSize,
EdgeLayout edgeLayout,
NodeLayout sourceNode,
NodeLayout targetNode,
Object param)
Returns the positions of the upper left 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 FreeEdgeLabelModel()
Method Detail |
public Object getDefaultParameter()
getDefaultParameter
in interface EdgeLabelModel
public Object createModelParameter(YRectangle labelBounds, EdgeLayout edgeLayout, NodeLayout sourceNode, NodeLayout targetNode)
createModelParameter
in interface EdgeLabelModel
labelBounds
- the bounds of the label for which a parameter representation is sought.edgeLayout
- the layout of the edge to which the label belongs.sourceNode
- the layout of the source node of the label owning edge.targetNode
- the layout of the target node of the label owning edge.public YPoint getLabelPlacement(YDimension labelSize, EdgeLayout edgeLayout, NodeLayout sourceNode, NodeLayout targetNode, Object param)
getLabelPlacement
in interface EdgeLabelModel
labelSize
- the size of the label that should be placededgeLayout
- the layout of the edge to which the label belongs.sourceNode
- the layout of the source node of the label owning edge.targetNode
- the layout of the target node of the label owning edge.param
- the model paramter that describes the abstract position
of the label within this model. The parameter must have been generated by this
model.public YList getLabelCandidates(EdgeLabelLayout label, EdgeLayout edgeLayout, NodeLayout sourceNode, NodeLayout targetNode)
getLabelCandidates
in interface EdgeLabelModel
label
- label for which candidates should be generatededgeLayout
- the layout of the edge to which the label belongs.sourceNode
- the layout of the source node of the label owning edge.targetNode
- the layout of the target node of the label owning edge.
|
© 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 |