gnu.x11
Class Rectangle
java.lang.Object
gnu.x11.Rectangle
public class Rectangle
- extends java.lang.Object
Position and size in geometry.
Constructor Summary |
Rectangle(int x,
int y,
int width,
int height)
|
Rectangle(java.lang.String spec)
Construct from a resource geometry specification string. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
x
public int x
y
public int y
width
public int width
height
public int height
Rectangle
public Rectangle(java.lang.String spec)
- Construct from a resource geometry specification string.
supported formats
- width x height + x + y (e.g. 100x300+50+50 or 100x300-20+20)
- width x height (e.g. 100x300)
- + x + y (+50+50 or -20-20)
Rectangle
public Rectangle(int x,
int y,
int width,
int height)
within
public Rectangle within(Rectangle bound)
spec
public java.lang.String spec()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object