org.gnu.gnome

Class CanvasItem

public class CanvasItem extends GObject

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 have an equivalent in java-gnome 4.0; have a look for org.gnome.gnome.CanvasItem.

The CanvasItem is the base class of all items that a Canvas displays.
Method Summary
voidaffineAbsolute(double[] affine)
Apply an absolute affine transformation to the item.
voidaffineRelative(double[] affine)
Apply a relative affine transformation to the item.
CanvasgetCanvas()
Returns the parent canvas for this item.
CanvasGroupgetParent()
Return the parent canvas group for this item.
static TypegetType()
Retrieve the runtime type used by the GLib library.
doublegetX1()
X1 coordinate fo the bounding box for this item (in canvas coordinates).
doublegetX2()
X2 coordinate fo the bounding box for this item (in canvas coordinates).
doublegetY1()
Y1 coordinate fo the bounding box for this item (in canvas coordinates).
doublegetY2()
Y2 coordinate fo the bounding box for this item (in canvas coordinates).
voidhide()
Hide the item (make it invisible).
voidlower(int positions)
Lower the item in the z-order of its parent group by the specified number of positions.
voidlowerToBotton()
Lower the item to the bottom of its parent group's z-order.
voidmove(double x, double y)
Move the item by the specified amount.
voidraise(int positions)
Raise the item in the z-order of its parent group by the specified number of positions.
voidraiseToTop()
Raise the item to the top of its parent group's z-order.
voidshow()
Show the item (make it visible).

Method Detail

affineAbsolute

public void affineAbsolute(double[] affine)

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.

Apply an absolute affine transformation to the item.

Parameters: affine the affine to apply.

affineRelative

public void affineRelative(double[] affine)

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.

Apply a relative affine transformation to the item.

Parameters: affine The affine to apply.

getCanvas

public Canvas getCanvas()

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.

Returns the parent canvas for this item.

Returns: The parent canvas.

getParent

public CanvasGroup getParent()

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.

Return the parent canvas group for this item.

Returns: The parent cavas group.

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.

getX1

public double getX1()

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.

X1 coordinate fo the bounding box for this item (in canvas coordinates).

Returns: The X1 coordinate.

getX2

public double getX2()

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.

X2 coordinate fo the bounding box for this item (in canvas coordinates).

Returns: The X2 coordinate.

getY1

public double getY1()

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.

Y1 coordinate fo the bounding box for this item (in canvas coordinates).

Returns: The Y1 coordinate.

getY2

public double getY2()

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.

Y2 coordinate fo the bounding box for this item (in canvas coordinates).

Returns: The Y2 coordinate.

hide

public void hide()

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.

Hide the item (make it invisible). If the item is already invisible, it has no effect.

lower

public void lower(int positions)

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.

Lower the item in the z-order of its parent group by the specified number of positions.

Parameters: positions The number of positions to lower the item.

lowerToBotton

public void lowerToBotton()

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.

Lower the item to the bottom of its parent group's z-order.

move

public void move(double x, double y)

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.

Move the item by the specified amount.

Parameters: x The amount to move the item horizontally. y The amount to move the item vertically.

raise

public void raise(int positions)

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.

Raise the item in the z-order of its parent group by the specified number of positions.

Parameters: positions The number of positions to raise the item.

raiseToTop

public void raiseToTop()

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.

Raise the item to the top of its parent group's z-order.

show

public void show()

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.

Show the item (make it visible). If the item is already shown, it has no effect.