org.tigris.gef.base
Class PathConv
java.lang.Object
org.tigris.gef.base.PathConv
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- PathConvPercent, PathConvPercentPlusConst
- public abstract class PathConv
- extends java.lang.Object
- implements java.io.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
Field Summary |
protected org.tigris.gef.presentation.Fig |
_pathFigure
|
Constructor Summary |
PathConv(org.tigris.gef.presentation.Fig theFig)
|
Method Summary |
protected void |
applyOffsetAmount(java.awt.Point p1,
java.awt.Point p2,
int offset,
java.awt.Point res)
|
protected java.awt.Point |
getOffsetAmount(java.awt.Point p1,
java.awt.Point p2,
int offset)
|
java.awt.Point |
getPoint()
|
abstract void |
setClosestPoint(java.awt.Point newPoint)
|
abstract void |
stuffPoint(java.awt.Point res)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_pathFigure
protected org.tigris.gef.presentation.Fig _pathFigure
PathConv
public PathConv(org.tigris.gef.presentation.Fig theFig)
getPoint
public java.awt.Point getPoint()
stuffPoint
public abstract void stuffPoint(java.awt.Point res)
setClosestPoint
public abstract void setClosestPoint(java.awt.Point newPoint)
getOffsetAmount
protected java.awt.Point getOffsetAmount(java.awt.Point p1,
java.awt.Point p2,
int offset)
applyOffsetAmount
protected void applyOffsetAmount(java.awt.Point p1,
java.awt.Point p2,
int offset,
java.awt.Point res)