org.gnu.gnome

Class CanvasWidget


public class CanvasWidget
extends CanvasItem

The GnomeCanvasWidget is not a widget - it is a GnomeCanvasItem that is capable of containing a widget. You can use a to display any widget in a GnomeCanvas as if the widget were a GnomeCanvasItem.

Constructor Summary

CanvasWidget(CanvasGroup group)

Method Summary

AnchorType
getAnchorType()
double
getHeight()
static Type
getType()
Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.
Widget
getWidget()
double
getWidth()
void
setAnchorType(AnchorType aType)
void
setHeight(double height)
void
setWidget(Widget aWidget)
void
setWidth(double width)

Methods inherited from class org.gnu.gnome.CanvasItem

affineAbsolute, affineRelative, getCanvas, getParent, getType, getX1, getX2, getY1, getY2, hide, lower, lowerToBotton, move, raise, raiseToTop, show

Constructor Details

CanvasWidget

public CanvasWidget(CanvasGroup group)

Method Details

getAnchorType

public AnchorType getAnchorType()

getHeight

public double getHeight()

getType

public static Type getType()

Deprecated. Superceeded by java-gnome 4.0; this method may or may not exist in the new bindings but if it does, it will likely have a different name or signature in order that the presented API is a more algorithmic mapping of the underlying native libraries.

Retrieve the runtime type used by the GLib library.
Overrides:
getType in interface CanvasItem

getWidget

public Widget getWidget()

getWidth

public double getWidth()

setAnchorType

public void setAnchorType(AnchorType aType)

setHeight

public void setHeight(double height)

setWidget

public void setWidget(Widget aWidget)

setWidth

public void setWidth(double width)