CH.ifa.draw.standard
Class OffsetLocator
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractLocator
-
- CH.ifa.draw.standard.OffsetLocator
-
public class OffsetLocator extends AbstractLocator
A locator to offset another Locator.- See Also:
Locator, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description OffsetLocator()OffsetLocator(Locator base)OffsetLocator(Locator base, int offsetX, int offsetY)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.awt.Pointlocate(Figure owner)Locates a position on the passed figure.voidmoveBy(int dx, int dy)voidread(StorableInput dr)Reads the arrow tip from a StorableInput.voidwrite(StorableOutput dw)Stores the arrow tip to a StorableOutput.-
Methods inherited from class CH.ifa.draw.standard.AbstractLocator
clone
-
-
-
-
Constructor Detail
-
OffsetLocator
public OffsetLocator()
-
OffsetLocator
public OffsetLocator(Locator base)
-
OffsetLocator
public OffsetLocator(Locator base, int offsetX, int offsetY)
-
-
Method Detail
-
locate
public java.awt.Point locate(Figure owner)
Description copied from interface:LocatorLocates 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:AbstractLocatorStores the arrow tip to a StorableOutput.- Specified by:
writein interfaceStorable- Overrides:
writein classAbstractLocator
-
read
public void read(StorableInput dr) throws java.io.IOException
Description copied from class:AbstractLocatorReads the arrow tip from a StorableInput.- Specified by:
readin interfaceStorable- Overrides:
readin classAbstractLocator- Throws:
java.io.IOException
-
-
DataMelt 3.0 © DataMelt by jWork.ORG