gnu.x11
Class Rectangle

java.lang.Object
  extended by gnu.x11.Rectangle

public class Rectangle
extends java.lang.Object

Position and size in geometry.


Field Summary
 int height
           
 int width
           
 int x
           
 int y
           
 
Constructor Summary
Rectangle(int x, int y, int width, int height)
           
Rectangle(java.lang.String spec)
          Construct from a resource geometry specification string.
 
Method Summary
 java.lang.String spec()
           
 java.lang.String toString()
           
 Rectangle within(Rectangle bound)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

public int x

y

public int y

width

public int width

height

public int height
Constructor Detail

Rectangle

public Rectangle(java.lang.String spec)
Construct from a resource geometry specification string.


Rectangle

public Rectangle(int x,
                 int y,
                 int width,
                 int height)
Method Detail

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