org.jhotdraw.standard
Class OffsetLocator
java.lang.Object
org.jhotdraw.standard.AbstractLocator
org.jhotdraw.standard.OffsetLocator
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, Locator, Storable
public class OffsetLocator
- extends AbstractLocator
A locator to offset another Locator.
- Version:
- <$CURRENT_VERSION$>
- See Also:
Locator
,
Serialized Form
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OffsetLocator
public OffsetLocator()
OffsetLocator
public OffsetLocator(Locator base)
OffsetLocator
public OffsetLocator(Locator base,
int offsetX,
int offsetY)
locate
public java.awt.Point locate(Figure owner)
- Description copied from interface:
Locator
- Locates a position on the passed figure.
- Returns:
- a point on the figure.
moveBy
public void moveBy(int dx,
int dy)
write
public void write(StorableOutput dw)
- Description copied from class:
AbstractLocator
- Stores the arrow tip to a StorableOutput.
- Specified by:
write
in interface Storable
- Overrides:
write
in class AbstractLocator
read
public void read(StorableInput dr)
throws java.io.IOException
- Description copied from class:
AbstractLocator
- Reads the arrow tip from a StorableInput.
- Specified by:
read
in interface Storable
- Overrides:
read
in class AbstractLocator
- Throws:
java.io.IOException