|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.gnome.glib.Boxed
org.gnome.gdk.Rectangle
public final class Rectangle
An object describing a rectangular area. While superficially similar to
Allocation
, this class is in fact
different. It's primary use is in describing an area that has been exposed
and needs to be [re]drawn. You normally get one of these from the
getArea()
method on EventExpose, though in
rare situations you need to describe an area based on your own calculations
and there is a constructor for that case.
Constructor Summary | |
---|---|
Rectangle(int x,
int y,
int width,
int height)
Create a Rectanlge. |
Method Summary | |
---|---|
int |
getHeight()
The height of the box described by this Rectangle. |
int |
getWidth()
The width of the box described by this Rectangle. |
int |
getX()
The horizontal co-ordinate of the top left corner of the box described by this Rectangle. |
int |
getY()
The vertical co-ordinate of the box described by this Rectangle. |
String |
toString()
|
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Rectangle(int x, int y, int width, int height)
invalidate()
method of an
[org.gnome.gdk] Window.
As usual, measurements are in pixels.
Method Detail |
---|
public int getHeight()
public int getWidth()
public int getX()
public int getY()
public String toString()
toString
in class org.freedesktop.bindings.Pointer
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |