org.gnu.gtk

Class Viewport

public class Viewport extends Bin

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

Method Detail

getHAdjustment

public Adjustment getHAdjustment()
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()
Retrieve the runtime type used by the GLib library.

getVAdjustment

public Adjustment getVAdjustment()
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)
Internal static factory method to be used by Java-Gnome only.

setHAdjustment

public void setHAdjustment(Adjustment hadj)
Sets the horizontal Viewport's Adjustment.

Parameters: hadj The horizontal Adjustment.

setVAdjustment

public void setVAdjustment(Adjustment vadj)
Sets the vertical Viewport's Adjustment.

Parameters: vadj The vertical Adjustment.