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.


Field Summary
 
Fields inherited from interface y.layout.LabelLayoutConstants
PLACE_ANYWHERE, PLACE_AT_CENTER, PLACE_AT_SOURCE, PLACE_AT_TARGET, PLACE_LEFT_OF_EDGE, PLACE_ON_EDGE, PLACE_RIGHT_OF_EDGE, PLACEMENT_ALONG_EDGE_MASK, PLACEMENT_ON_SIDE_OF_EDGE_MASK
 
Constructor Summary
EdgeLabelLayoutImpl()
           
 
Method Summary
 EdgeLabelModel getLabelModel()
          Returns the edge label model associated with this label layout
 byte getPreferredPlacement()
          Returns the preferred placement of this label.
 void setEdgeLabelModel(EdgeLabelModel m)
          Sets the edge label model associated with this label layout
 void setPreferredPlacement(byte placement)
          Sets the preferred placement of this label
 
Methods inherited from class y.layout.LabelLayoutImpl
getBox, getModelParameter, setBox, setModelParameter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface y.layout.LabelLayout
getBox, getModelParameter, setModelParameter
 

Constructor Detail

EdgeLabelLayoutImpl

public EdgeLabelLayoutImpl()
Method Detail

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:
EdgeLabelLayoutImpl.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

© Copyright 2000-2003,
yWorks GmbH.
All rights reserved.

2003