uci.gef
Class PathConv
java.lang.Object
|
+--uci.gef.PathConv
- Direct Known Subclasses:
- PathConvPercent, PathConvPercentPlusConst
- public abstract class PathConv
- extends Object
- implements Serializable
Abstract class that defines a common interface to all of
path-to-coord mapping objects. These objects store some
information about a point that is defined relative to a path
(e.g., along a FigEdge) and provide methods to get the
coordinates (x, y) for that point. This allows us to place labels
along a FigEdge and have the label stay in the right place, even
if the FigEdge moves.
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
_pathFigure
protected Fig _pathFigure
PathConv
public PathConv(Fig theFig)
getPoint
public Point getPoint()
stuffPoint
public abstract void stuffPoint(Point res)
setClosestPoint
public abstract void setClosestPoint(Point newPoint)
getOffsetAmount
protected Point getOffsetAmount(Point p1,
Point p2,
int offset)
applyOffsetAmount
protected void applyOffsetAmount(Point p1,
Point p2,
int offset,
Point res)