org.nakedobjects.viewer.lightweight
Class Bounds
java.lang.Object
org.nakedobjects.viewer.lightweight.Bounds
- public class Bounds
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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)
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)