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

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

public class Location
extends java.lang.Object


Constructor Summary
Location()
           
Location(int x, int y)
           
Location(Location location)
           
 
Method Summary
 void add(int x, int y)
           
 boolean equals(java.lang.Object obj)
           
 int getX()
           
 int getY()
           
 void move(int dx, int dy)
           
 Offset offsetFrom(Location location)
           
 void setX(int x)
           
 void setY(int y)
           
 void subtract(int x, int y)
           
 void subtract(Location location)
           
 void subtract(Offset offset)
           
 java.lang.String toString()
           
 void translate(Location offset)
           
 void translate(Offset offset)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Location

public Location()

Location

public Location(int x,
                int y)

Location

public Location(Location location)
Method Detail

add

public void add(int x,
                int y)

equals

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

getX

public int getX()

getY

public int getY()

move

public void move(int dx,
                 int dy)

offsetFrom

public Offset offsetFrom(Location location)

setX

public void setX(int x)

setY

public void setY(int y)

subtract

public void subtract(int x,
                     int y)

subtract

public void subtract(Location location)

subtract

public void subtract(Offset offset)

toString

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

translate

public void translate(Location offset)

translate

public void translate(Offset offset)


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