CH.ifa.draw.standard
Class RelativeLocator
- java.lang.Object
-
- CH.ifa.draw.standard.AbstractLocator
-
- CH.ifa.draw.standard.RelativeLocator
-
public class RelativeLocator extends AbstractLocator
A locator that specfies a point that is relative to the bounds of a figure.- See Also:
Locator, Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description RelativeLocator()RelativeLocator(double relativeX, double relativeY)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description static Locatorcenter()Center.static Locatoreast()java.awt.Pointlocate(Figure owner)Locates a position on the passed figure.static Locatornorth()North.static LocatornorthEast()North east.static LocatornorthWest()North west.voidread(StorableInput dr)Reads the arrow tip from a StorableInput.static Locatorsouth()South.static LocatorsouthEast()South east.static LocatorsouthWest()South west.static Locatorwest()West.voidwrite(StorableOutput dw)Stores the arrow tip to a StorableOutput.-
Methods inherited from class CH.ifa.draw.standard.AbstractLocator
clone
-
-
-
-
Constructor Detail
-
RelativeLocator
public RelativeLocator()
-
RelativeLocator
public RelativeLocator(double relativeX, double relativeY)
-
-
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.
-
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
-
east
public static Locator east()
-
north
public static Locator north()
North.
-
west
public static Locator west()
West.
-
northEast
public static Locator northEast()
North east.
-
northWest
public static Locator northWest()
North west.
-
south
public static Locator south()
South.
-
southEast
public static Locator southEast()
South east.
-
southWest
public static Locator southWest()
South west.
-
center
public static Locator center()
Center.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG