CH.ifa.draw.standard
Class OffsetLocator
java.lang.Object
CH.ifa.draw.standard.AbstractLocator
CH.ifa.draw.standard.OffsetLocator
- All Implemented Interfaces:
- Locator, Storable, java.io.Serializable, java.lang.Cloneable
public class OffsetLocator
- extends AbstractLocator
A locator to offset another Locator.
- See Also:
Locator
,
Serialized Form
Methods inherited from class java.lang.Object |
equals, finalize, 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