org.tigris.gef.base
Class PathConvPercent
java.lang.Object
org.tigris.gef.base.PathConv
org.tigris.gef.base.PathConvPercent
- All Implemented Interfaces:
- java.io.Serializable
- public class PathConvPercent
- extends PathConv
Used to place labels as specific positions along a FigEdge. For
example, a label can be placed in the middle of a FigEdge by using 50%.
- See Also:
- Serialized Form
Constructor Summary |
PathConvPercent(org.tigris.gef.presentation.Fig theFig,
int newPercent,
int newOffset)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathConvPercent
public PathConvPercent(org.tigris.gef.presentation.Fig theFig,
int newPercent,
int newOffset)
stuffPoint
public void stuffPoint(java.awt.Point res)
- Specified by:
stuffPoint
in class PathConv
setPercentOffset
public void setPercentOffset(int newPercent,
int newOffset)
setClosestPoint
public void setClosestPoint(java.awt.Point newPoint)
- Specified by:
setClosestPoint
in class PathConv