|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Alignment
org.gnome.gtk.Alignment
.
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.
public class Alignment
This is a container widget that is capable of controlling the size of a single child widget. The scale values are from 0.0 to 1.0, indicating the maximum amount the child can expand to fill the space allocated to the Alignment widget. The align values determine the x and y positions relative to the top left and bottom right corners of the Alignment rectangle. The align values are from 0.0 to the top or left side, and 1.0 for the bottom or right side.
Constructor Summary | |
---|---|
Alignment(double xAlign,
double yAlign,
double xScale,
double yScale)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
|
Alignment(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Method Summary | |
---|---|
static Alignment |
getAlignment(org.gnu.glib.Handle handle)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
int |
getBottomPadding()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
int |
getLeftPadding()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
int |
getRightPadding()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
int |
getTopPadding()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
static org.gnu.glib.Type |
getType()
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
set(double xAlign,
double yAlign,
double xScale,
double yScale)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
void |
setPadding(int top,
int bottom,
int left,
int right)
Deprecated. Superceeded by java-gnome 4.0; a method along these lines may well exist in the new bindings, but if it does it likely has a different name or signature due to the shift to an algorithmic mapping of the underlying native libraries. |
Methods inherited from class org.gnu.gtk.Bin |
---|
getChild |
Methods inherited from class org.gnu.gtk.Container |
---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
Methods inherited from class org.gnu.gtk.GtkObject |
---|
destroy, sink |
Methods inherited from class org.gnu.glib.GObject |
---|
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addListener, collect, freezeNotify, getBooleanProperty, getData, getDoubleProperty, getFloatProperty, getGObjectFromHandle, getIntProperty, getJavaObjectProperty, getLongProperty, getProperty, getStringProperty, hasProperty, notify, removeEventHandler, removeListener, setBooleanProperty, setData, setDoubleProperty, setFloatProperty, setIntProperty, setJavaObjectProperty, setLongProperty, setProperty, setStringProperty, thawNotify |
Methods inherited from class org.gnu.glib.Struct |
---|
equals, getHandle, getNullHandle, hashCode |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Alignment(double xAlign, double yAlign, double xScale, double yScale)
xAlign
- The horizontal alignment of the child widget from 0 (left) to
1 (right).yAlign
- The vertical alignment of the child widget from 0 (top) to 1
(bottom).xScale
- The amount that the child widget expands horizontally to fill
up unused space, from 0 to 1. A value of 0 indicates that the
child widget should never expand. A value of 1 indicates that
the child widget will expand to fill all of the space
allocated for the Alignment.yScale
- The amount that the child widget expands vertically to fill up
unused space, from 0 to 1. The values are similar to xScale.public Alignment(org.gnu.glib.Handle handle)
Method Detail |
---|
public static Alignment getAlignment(org.gnu.glib.Handle handle)
public void set(double xAlign, double yAlign, double xScale, double yScale)
xAlign
- The horizontal alignment of the child widget from 0 (left) to
1 (right).yAlign
- The vertical alignment of the child widget from 0 (top) to 1
(bottom).xScale
- The amount that the child widget expands horizontally to fill
up unused space, from 0 to 1. A value of 0 indicates that the
child widget should never expand. A value of 1 indicates that
the child widget will expand to fill all of the space
allocated for the Alignment.yScale
- The amount that the child widget expands vertically to fill up
unused space, from 0 to 1. The values are similar to xScale.public void setPadding(int top, int bottom, int left, int right)
top
- the padding at the top of the widgetbottom
- the padding at the bottom of the widgetleft
- the padding at the left of the widgetright
- the padding at the right of the widget.public int getTopPadding()
public int getBottomPadding()
public int getLeftPadding()
public int getRightPadding()
public static org.gnu.glib.Type getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |