Prev Class | Next Class | Frames | No Frames |
Summary: Nested | Field | Method | Constr | Detail: Nested | Field | Method | Constr |
GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Bin
org.gnu.gtk.Alignment
public class Alignment
extends Bin
Constructor Summary | |
| |
|
Method Summary | |
static Alignment |
|
int |
|
int |
|
int |
|
int |
|
static Type |
|
void |
|
void |
|
Methods inherited from class org.gnu.gtk.Container | |
add , addListener , getBooleanChildProperty , getBorderWidth , getChildProperty , getChildren , getEventListenerClass , getEventType , getIntChildProperty , getResizeMode , getType , remove , removeListener , resizeChildren , setBooleanChildProperty , setBorderWidth , setChildProperty , setIntChildProperty , setResizeMode |
public Alignment(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.
Construct an alignment using a handle to a native resource.
public 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.
Construct a new Alignment.
- Parameters:
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 static Alignment getAlignment(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.
Internal static factory method to be used by Java-Gnome only.
public 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.
Gets the size of the padding at the bottom of the widget.
- Returns:
- The padding at the bottom of the widget.
public 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.
Gets the size of the padding at the left of the widget.
- Returns:
- The padding at the left of the widget.
public 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.
Gets the size of the padding at the right of the widget.
- Returns:
- The padding at the right of the widget.
public 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.
Gets the size of the padding at the top of the widget.
- Returns:
- The padding at the top of the widget.
public static 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.
Retrieve the runtime type used by the GLib library.
public 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.
Set the alignment and scale for an already created Alignment object.
- Parameters:
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)
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.
Sets the padding on the different sides of the widget. The padding adds blank space to the sides of the widget. For instance, this can be used to indent the child widget towards the right by adding padding on the left.
- Parameters:
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.