org.gnu.gtk
public class Alignment extends Bin
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.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.
Constructor Summary | |
---|---|
Alignment(double xAlign, double yAlign, double xScale, double yScale)
Construct a new Alignment.
| |
Alignment(Handle handle)
Construct an alignment using a handle to a native resource. |
Method Summary | |
---|---|
static Alignment | getAlignment(Handle handle)
Internal static factory method to be used by Java-Gnome only. |
int | getBottomPadding()
Gets the size of the padding at the bottom of the widget.
|
int | getLeftPadding()
Gets the size of the padding at the left of the widget.
|
int | getRightPadding()
Gets the size of the padding at the right of the widget.
|
int | getTopPadding()
Gets the size of the padding at the top of the widget.
|
static Type | getType()
Retrieve the runtime type used by the GLib library. |
void | set(double xAlign, double yAlign, double xScale, double yScale)
Set the alignment and scale for an already created Alignment object.
|
void | setPadding(int top, int bottom, int left, int right)
Sets the padding on the different sides of the widget. |
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.
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.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.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.
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.
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.
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.
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.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.
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 widget bottom the padding at the bottom of the widget left the padding at the left of the widget right the padding at the right of the widget.