|
java-gnome version 4.0.7 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
java.lang.Objectorg.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Misc
public abstract class Misc
Base class for Widgets that have notions of alignment and padding.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
|---|
Widget.BUTTON_PRESS_EVENT, Widget.BUTTON_RELEASE_EVENT, Widget.ENTER_NOTIFY_EVENT, Widget.EXPOSE_EVENT, Widget.FOCUS_IN_EVENT, Widget.FOCUS_OUT_EVENT, Widget.HIDE, Widget.KEY_PRESS_EVENT, Widget.KEY_RELEASE_EVENT, Widget.LEAVE_NOTIFY_EVENT, Widget.UNMAP_EVENT, Widget.VISIBILITY_NOTIFY_EVENT |
| Method Summary | |
|---|---|
float |
getAlignmentX()
Gets the horizontal alignment of the Widget within its allocation. |
float |
getAlignmentY()
Gets the vertical alignment of the Widget within its allocation. |
int |
getPaddingX()
Returns the horizontal padding of the Widget, in pixels. |
int |
getPaddingY()
Returns the vertical padding of the Widget, in pixels. |
void |
setAlignment(float xalign,
float yalign)
Set the horizontal and vertical alignment attributes, enabling the Widget to be positioned within its allocated area. |
void |
setPadding(int xpad,
int ypad)
Set the amount of extra horizontal and vertical padding space to added around the Widget. |
| Methods inherited from class org.gnome.gtk.Widget |
|---|
activate, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getHasFocus, getParent, getRequisition, getToplevel, getWindow, grabFocus, hide, modifyBackground, modifyText, setCanFocus, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
| Methods inherited from class org.freedesktop.bindings.Proxy |
|---|
toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public float getAlignmentX()
setAlignment().
public float getAlignmentY()
setAlignment().
public int getPaddingX()
public int getPaddingY()
public void setAlignment(float xalign,
float yalign)
xalign - the horizontal alignment, from 0.0f (full
left) to 1.0f (full right).yalign - the vertical alignment, from 0.0f (top) to
1.0f (bottom).
public void setPadding(int xpad,
int ypad)
xpad - the amount of space to add on the left and right of the
Widget, in pixels.ypad - the amount of space to add on the top and bottom of the
Widget, in pixels.
|
![]() java-gnome |
||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||