org.gnu.gtk

Class Viewport

public class Viewport 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.Viewport. 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.

A Viewport is a container that does not resize to fit in the space allocated to it. Instead, it adds scrollbars as necessary so you can view any part of the window.
Constructor Summary
Viewport(Adjustment hadj, Adjustment vadj)
Construct a new Viewport with the given Adjustments.
Viewport(Handle handle)
Construct a Viewport using a handle to a native resource.
Method Summary
AdjustmentgetHAdjustment()
Returns the horizontal Viewport's Adjustment.
static TypegetType()
Retrieve the runtime type used by the GLib library.
AdjustmentgetVAdjustment()
Returns the vertical Viewport's Adjustment.
static ViewportgetViewport(Handle handle)
Internal static factory method to be used by Java-Gnome only.
voidsetHAdjustment(Adjustment hadj)
Sets the horizontal Viewport's Adjustment.
voidsetVAdjustment(Adjustment vadj)
Sets the vertical Viewport's Adjustment.

Constructor Detail

Viewport

public Viewport(Adjustment hadj, Adjustment vadj)

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 Viewport with the given Adjustments.

Parameters: hadj The horizontal Adjustment to use for the Viewport. vadj The vertical Adjustment to use for the Viewport.

Viewport

public Viewport(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 a Viewport using a handle to a native resource.

Method Detail

getHAdjustment

public Adjustment getHAdjustment()

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 Viewport's Adjustment. This can be used to connect the horizontal scrollbar to the child Widget's horizontal scroll functionality.

Returns: The horizontal Viewport's Adjustment.

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.

getVAdjustment

public Adjustment getVAdjustment()

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 Viewport's Adjustment. This can be used to connect the vertical scrollbar to the child Widget's vertical scroll functionality.

Returns: The vertical Viewport's Adjustment.

getViewport

public static Viewport getViewport(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.

setHAdjustment

public void setHAdjustment(Adjustment hadj)

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 horizontal Viewport's Adjustment.

Parameters: hadj The horizontal Adjustment.

setVAdjustment

public void setVAdjustment(Adjustment vadj)

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 vertical Viewport's Adjustment.

Parameters: vadj The vertical Adjustment.