org.gnu.gtk

Class Misc

public class Misc extends Widget

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.Misc. 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.

This is a base class providing alignment and padding to a number of displayable widgets.
Method Summary
static TypegetType()
Retrieve the runtime type used by the GLib library.
doublegetXAlign()
Returns the horizontal alignment of the widget.
intgetXPadding()
Retrieve the amount of space added to the left and right of the widget.
doublegetYAlign()
Returns the vertical alignment of the widget.
intgetYPadding()
Retrieve the amount of space added to the top and bottom of the widget.
voidsetAlignment(double xAlign, double yAlign)
Sets the alignment of a widget.
voidsetPadding(int xPad, int yPad)
Sets the amount of space to add around the widget.

Method Detail

getType

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.

getXAlign

public double getXAlign()

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.

Returns the horizontal alignment of the widget.

getXPadding

public int getXPadding()

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 amount of space added to the left and right of the widget.

getYAlign

public double getYAlign()

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.

Returns the vertical alignment of the widget.

getYPadding

public int getYPadding()

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 amount of space added to the top and bottom of the widget.

setAlignment

public void setAlignment(double xAlign, double yAlign)

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 alignment of a widget.

Parameters: xAlign The horizontal alignment from 0 (left) to 1 (right). yAlign The vertical alignment from 0 (top) to 1 (bottom).

setPadding

public void setPadding(int xPad, int yPad)

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 amount of space to add around the widget.

Parameters: xPad The amount of space to add to the left and right of the widget. yPad The amount of space to add to the top and bottom of the widget.