JHotDraw 6.0b1

org.jhotdraw.standard
Class OffsetLocator

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

public class OffsetLocator
extends AbstractLocator

A locator to offset another Locator.

See Also:
Locator, Serialized Form

Field Summary
protected  int fOffsetX
           
protected  int fOffsetY
           
 
Constructor Summary
OffsetLocator()
           
OffsetLocator(Locator base)
           
OffsetLocator(Locator base, int offsetX, int offsetY)
           
 
Method Summary
 java.awt.Point locate(Figure owner)
          Locates a position on the passed figure.
 void moveBy(int dx, int dy)
           
 void read(StorableInput dr)
          Reads the arrow tip from a StorableInput.
 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
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fOffsetX

protected int fOffsetX

fOffsetY

protected int fOffsetY
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: Locator
Locates 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: 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

JHotDraw 6.0b1