org.nakedobjects.viewer.lightweight
Class Bounds

java.lang.Object
  extended byorg.nakedobjects.viewer.lightweight.Bounds

public class Bounds
extends java.lang.Object


Constructor Summary
Bounds()
           
Bounds(Bounds bounds)
           
Bounds(int x, int y, int width, int height)
           
Bounds(Location location, Size size)
           
Bounds(Size size)
           
 
Method Summary
 boolean contains(Location mousePosition)
           
 boolean equals(java.lang.Object obj)
           
 int getHeight()
           
 Location getLocation()
           
 Size getSize()
           
 int getWidth()
           
 int getX()
           
 int getX2()
           
 int getY()
           
 int getY2()
           
 void grow(int x, int y)
           
 boolean intersects(Bounds bounds)
           
 void setHeight(int height)
           
 void setWidth(int width)
           
 void setX(int x)
           
 void setY(int y)
           
 java.lang.String toString()
           
 void translate(int x, int y)
           
 Bounds union(Bounds bounds)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Bounds

public Bounds(int x,
              int y,
              int width,
              int height)

Bounds

public Bounds()

Bounds

public Bounds(Location location,
              Size size)

Bounds

public Bounds(Size size)

Bounds

public Bounds(Bounds bounds)
Method Detail

setHeight

public void setHeight(int height)

getHeight

public int getHeight()

getLocation

public Location getLocation()

getSize

public Size getSize()

setWidth

public void setWidth(int width)

getWidth

public int getWidth()

setX

public void setX(int x)

getX

public int getX()

getX2

public int getX2()

setY

public void setY(int y)

getY

public int getY()

getY2

public int getY2()

contains

public boolean contains(Location mousePosition)

equals

public boolean equals(java.lang.Object obj)

intersects

public boolean intersects(Bounds bounds)

toString

public java.lang.String toString()

union

public Bounds union(Bounds bounds)

translate

public void translate(int x,
                      int y)

grow

public void grow(int x,
                 int y)