JHotDraw 6.0b1

org.jhotdraw.standard
Class RelativeLocator

java.lang.Object
  extended by org.jhotdraw.standard.AbstractLocator
      extended by org.jhotdraw.standard.RelativeLocator
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, Locator, Storable

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
RelativeLocator()
           
RelativeLocator(double relativeX, double relativeY)
           
 
Method Summary
static Locator center()
          Center.
static Locator east()
           
 boolean equals(java.lang.Object o)
           
 java.awt.Point locate(Figure owner)
          Locates a position on the passed figure.
static Locator north()
          North.
static Locator northEast()
          North east.
static Locator northWest()
          North west.
 void read(StorableInput dr)
          Reads the arrow tip from a StorableInput.
static Locator south()
          South.
static Locator southEast()
          South east.
static Locator southWest()
          South west.
static Locator west()
          West.
 void write(StorableOutput dw)
          Stores the arrow tip to a StorableOutput.
 
Methods inherited from class org.jhotdraw.standard.AbstractLocator
clone
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativeLocator

public RelativeLocator()

RelativeLocator

public RelativeLocator(double relativeX,
                       double relativeY)
Method Detail

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

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.

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

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.


JHotDraw 6.0b1