org.tigris.gef.base
Class PathConvPercent

java.lang.Object
  extended by org.tigris.gef.base.PathConv
      extended by 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

Field Summary
 
Fields inherited from class org.tigris.gef.base.PathConv
_pathFigure
 
Constructor Summary
PathConvPercent(Fig theFig, int newPercent, int newOffset)
           
 
Method Summary
 void setClosestPoint(java.awt.Point newPoint)
           
 void setPercentOffset(int newPercent, int newOffset)
           
 void stuffPoint(java.awt.Point res)
           
 
Methods inherited from class org.tigris.gef.base.PathConv
applyOffsetAmount, getOffsetAmount, getPoint
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PathConvPercent

public PathConvPercent(Fig theFig,
                       int newPercent,
                       int newOffset)
Method Detail

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