y.layout
Class EdgeLabelLayoutImpl
java.lang.Object
y.layout.LabelLayoutImpl
y.layout.EdgeLabelLayoutImpl
- All Implemented Interfaces:
- EdgeLabelLayout, LabelLayout, LabelLayoutConstants
public class EdgeLabelLayoutImpl
- extends LabelLayoutImpl
- implements EdgeLabelLayout
This class is an default implementation of the EdgeLabelLayout
interface.
-
-
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EdgeLabelLayoutImpl
public EdgeLabelLayoutImpl()
getLabelModel
public EdgeLabelModel getLabelModel()
- Returns the edge label model associated with this label layout
- Specified by:
getLabelModel in interface EdgeLabelLayout
setEdgeLabelModel
public void setEdgeLabelModel(EdgeLabelModel m)
- Sets the edge label model associated with this label layout
setPreferredPlacement
public void setPreferredPlacement(byte placement)
- Sets the preferred placement of this label
- See Also:
getPreferredPlacement()
getPreferredPlacement
public byte getPreferredPlacement()
- Description copied from interface:
EdgeLabelLayout
- Returns the preferred placement of this label. This feature
is being interpreted by label aware layout algorithms.
- Specified by:
getPreferredPlacement in interface EdgeLabelLayout
- Returns:
- an ORed combination of
LabelLayoutConstants.PLACE_ANYWHERE, LabelLayoutConstants.PLACE_AT_SOURCE,
LabelLayoutConstants.PLACE_AT_TARGET or LabelLayoutConstants.PLACE_AT_CENTER and
LabelLayoutConstants.PLACE_LEFT_OF_EDGE, LabelLayoutConstants.PLACE_RIGHT_OF_EDGE and LabelLayoutConstants.PLACE_ON_EDGE - See Also:
LabelLayoutConstants