All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class CH.ifa.draw.standard.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

Constructor Index

 o RelativeLocator()
 o RelativeLocator(double, double)

Method Index

 o center()
Center.
 o east()
 o locate(Figure)
Locates a position on the passed figure.
 o north()
North.
 o northEast()
North east.
 o northWest()
North west.
 o read(StorableInput)
Reads the arrow tip from a StorableInput.
 o south()
South.
 o southEast()
South east.
 o southWest()
South west.
 o west()
West.
 o write(StorableOutput)
Stores the arrow tip to a StorableOutput.

Constructors

 o RelativeLocator
 public RelativeLocator()
 o RelativeLocator
 public RelativeLocator(double relativeX,
                        double relativeY)

Methods

 o locate
 public Point locate(Figure owner)
Locates a position on the passed figure.

Overrides:
locate in class AbstractLocator
 o write
 public void write(StorableOutput dw)
Stores the arrow tip to a StorableOutput.

Overrides:
write in class AbstractLocator
 o read
 public void read(StorableInput dr) throws IOException
Reads the arrow tip from a StorableInput.

Overrides:
read in class AbstractLocator
 o east
 public static Locator east()
 o north
 public static Locator north()
North.

 o west
 public static Locator west()
West.

 o northEast
 public static Locator northEast()
North east.

 o northWest
 public static Locator northWest()
North west.

 o south
 public static Locator south()
South.

 o southEast
 public static Locator southEast()
South east.

 o southWest
 public static Locator southWest()
South west.

 o center
 public static Locator center()
Center.


All Packages  Class Hierarchy  This Package  Previous  Next  Index