JHotDraw 7.0.6

org.jhotdraw.draw
Class RelativeLocator

java.lang.Object
  extended by org.jhotdraw.draw.AbstractLocator
      extended by org.jhotdraw.draw.RelativeLocator
All Implemented Interfaces:
Locator, DOMStorable
Direct Known Subclasses:
RelativeDecoratorLocator

public class RelativeLocator
extends AbstractLocator

A locator that specfies a point that is relative to the bounds of a figure.


Constructor Summary
RelativeLocator()
           
RelativeLocator(double relativeX, double relativeY)
          Creates a new instance.
 
Method Summary
static Locator center()
          Center.
static Locator east()
           
 java.awt.geom.Point2D.Double locate(Figure owner)
          Locates a position on the provided figure.
static Locator north()
          North.
static Locator northEast()
          North east.
static Locator northWest()
          North west.
 void read(DOMInput in)
           
static Locator south()
          South.
static Locator southEast()
          South east.
static Locator southWest()
          South west.
static Locator west()
          West.
 void write(DOMOutput out)
           
 
Methods inherited from class org.jhotdraw.draw.AbstractLocator
locate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativeLocator

public RelativeLocator()

RelativeLocator

public RelativeLocator(double relativeX,
                       double relativeY)
Creates a new instance.

Method Detail

locate

public java.awt.geom.Point2D.Double locate(Figure owner)
Description copied from interface: Locator
Locates a position on the provided figure.

Returns:
a point on the figure.

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.


write

public void write(DOMOutput out)

read

public void read(DOMInput in)

Copyright 1996-2006 © JHotDraw.org