|
Search this API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface EdgeLabelModel
This interface defines the properties of the model associated with an edge label layout.
An edge label model provides a set of possible candidates for the placement of an edge label.
Method Summary | |
---|---|
Object |
createModelParameter(OrientedRectangle labelBounds,
EdgeLayout edgeLayout,
NodeLayout sourceLayout,
NodeLayout targetLayout)
Creates a model parameter that represents the given edge label context best within this model. |
Object |
getDefaultParameter()
Returns a model parameter that encodes the default position of this model's allowed edge label positions. |
YList |
getLabelCandidates(EdgeLabelLayout labelLayout,
EdgeLayout edgeLayout,
NodeLayout sourceLayout,
NodeLayout targetLayout)
Returns a list of EdgeLabelCandidate objects each of which describes
a valid label position within this model. |
OrientedRectangle |
getLabelPlacement(YDimension labelSize,
EdgeLayout edgeLayout,
NodeLayout sourceLayout,
NodeLayout targetLayout,
Object param)
Returns the bounds of the label for the position encoded by the given model parameter. |
Method Detail |
---|
Object getDefaultParameter()
getLabelPlacement(YDimension, EdgeLayout, NodeLayout, NodeLayout, Object)
method.OrientedRectangle getLabelPlacement(YDimension labelSize, EdgeLayout edgeLayout, NodeLayout sourceLayout, NodeLayout targetLayout, Object param)
labelSize
- The size of the label that should be placed.edgeLayout
- The layout of the edge to which the label belongs.sourceLayout
- The layout of the source node of the label owning edge.targetLayout
- The layout of the target node of the label owning edge.param
- The model parameter that describes the abstract position of the label within
this model.
The parameter must have been generated by this model.
YList getLabelCandidates(EdgeLabelLayout labelLayout, EdgeLayout edgeLayout, NodeLayout sourceLayout, NodeLayout targetLayout)
EdgeLabelCandidate
objects each of which describes
a valid label position within this model.
labelLayout
- The label for which candidates should be generated.edgeLayout
- The layout of the edge to which the label belongs.sourceLayout
- The layout of the source node of the label owning edge.targetLayout
- The layout of the target node of the label owning edge.
EdgeLabelCandidate
objects.Object createModelParameter(OrientedRectangle labelBounds, EdgeLayout edgeLayout, NodeLayout sourceLayout, NodeLayout targetLayout)
labelBounds
- The bounds of the label for which a parameter representation is sought.edgeLayout
- The layout of the edge to which the label belongs.sourceLayout
- The layout of the source node of the label owning edge.targetLayout
- The layout of the target node of the label owning edge.
getLabelPlacement(YDimension, EdgeLayout, NodeLayout, NodeLayout, Object)
method.
|
© Copyright 2000-2013, yWorks GmbH. All rights reserved. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |