|
java-gnome version 4.0.15 | ||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||
Objectorg.freedesktop.bindings.Pointer
org.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.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent |
| 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, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
| Methods inherited from class org.freedesktop.bindings.Pointer |
|---|
toString |
| Methods inherited from class 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 | ||||