org.nakedobjects.plugins.dnd.viewer.drawing
Class Offset

java.lang.Object
  extended by org.nakedobjects.plugins.dnd.viewer.drawing.Offset

public class Offset
extends java.lang.Object


Constructor Summary
Offset(int dx, int dy)
           
Offset(Location location)
           
Offset(Location locationInViewer, Location locationInView)
           
 
Method Summary
 void add(int dx, int dy)
           
 boolean equals(java.lang.Object obj)
           
 int getDeltaX()
           
 int getDeltaY()
           
 Location offset(Location locationInViewer)
           
 void subtract(int dx, int dy)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Offset

public Offset(Location locationInViewer,
              Location locationInView)

Offset

public Offset(int dx,
              int dy)

Offset

public Offset(Location location)
Method Detail

getDeltaX

public int getDeltaX()

getDeltaY

public int getDeltaY()

offset

public Location offset(Location locationInViewer)

equals

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

add

public void add(int dx,
                int dy)

subtract

public void subtract(int dx,
                     int dy)


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.