org.gnu.gtk
public final class Allocation extends Object
Deprecated: This class is part of the java-gnome 2.x family of libraries,
which, due to their inefficiency and complexity, are no longer
being maintained and have been abandoned by the java-gnome
project. This class may in the future have an equivalent in
java-gnome 4.0, try looking for
org.gnome.gtk.Allocation.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
| Constructor Summary | |
|---|---|
| Allocation(int x, int y, int width, int height)
Construct a new Allocation.
| |
| Method Summary | |
|---|---|
| int | getHeight() |
| int | getWidth() |
| int | getX() |
| int | getY() |
Parameters: x the X position of the widget's area relative to its parents allocation. y the Y position of the widget's area relative to its parents allocation. width the width of the widget's allocated area. height the height of the widget's allocated area.
See Also: getAllocation
Returns: the height of the widget's allocated area.
Returns: the width of the widget's allocated area.
Returns: the X position of the widget's area relative to its parents allocation.
Returns: the Y position of the widget's area relative to its parents allocation.