org.gnu.gnome
Class CanvasItem
public class CanvasItem
extends GObject
The CanvasItem is the base class of all items that a Canvas displays.
void | affineAbsolute(double[] affine) - Apply an absolute affine transformation to the item.
|
void | affineRelative(double[] affine) - Apply a relative affine transformation to the item.
|
Canvas | getCanvas() - Returns the parent canvas for this item.
|
CanvasGroup | getParent() - Return the parent canvas group for this item.
|
static Type | getType() - Retrieve the runtime type used by the GLib library.
|
double | getX1() - X1 coordinate fo the bounding box for this item (in canvas coordinates).
|
double | getX2() - X2 coordinate fo the bounding box for this item (in canvas coordinates).
|
double | getY1() - Y1 coordinate fo the bounding box for this item (in canvas coordinates).
|
double | getY2() - Y2 coordinate fo the bounding box for this item (in canvas coordinates).
|
void | hide() - Hide the item (make it invisible).
|
void | lower(int positions) - Lower the item in the z-order of its parent group by the specified number
of positions.
|
void | lowerToBotton() - Lower the item to the bottom of its parent group's z-order.
|
void | move(double x, double y) - Move the item by the specified amount.
|
void | raise(int positions) - Raise the item in the z-order of its parent group by the specified number
of positions.
|
void | raiseToTop() - Raise the item to the top of its parent group's z-order.
|
void | show() - Show the item (make it visible).
|
affineAbsolute
public void affineAbsolute(double[] affine)
Apply an absolute affine transformation to the item.
affine
- the affine to apply.
affineRelative
public void affineRelative(double[] affine)
Apply a relative affine transformation to the item.
affine
- The affine to apply.
getCanvas
public Canvas getCanvas()
Returns the parent canvas for this item.
getParent
public CanvasGroup getParent()
Return the parent canvas group for this item.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
getX1
public double getX1()
X1 coordinate fo the bounding box for this item (in canvas coordinates).
getX2
public double getX2()
X2 coordinate fo the bounding box for this item (in canvas coordinates).
getY1
public double getY1()
Y1 coordinate fo the bounding box for this item (in canvas coordinates).
getY2
public double getY2()
Y2 coordinate fo the bounding box for this item (in canvas coordinates).
hide
public void hide()
Hide the item (make it invisible). If the item is already invisible, it
has no effect.
lower
public void lower(int positions)
Lower the item in the z-order of its parent group by the specified number
of positions.
positions
- The number of positions to lower the item.
lowerToBotton
public void lowerToBotton()
Lower the item to the bottom of its parent group's z-order.
move
public void move(double x,
double y)
Move the item by the specified amount.
x
- The amount to move the item horizontally.y
- The amount to move the item vertically.
raise
public void raise(int positions)
Raise the item in the z-order of its parent group by the specified number
of positions.
positions
- The number of positions to raise the item.
raiseToTop
public void raiseToTop()
Raise the item to the top of its parent group's z-order.
show
public void show()
Show the item (make it visible). If the item is already shown, it has no
effect.