The GnomeCanvasItem is the base class of all items that a
GnomeCanvas displays.
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.
- The parent canvas.
getCanvas
protected static final Handle getCanvas(Handle cptr)
getParent
public CanvasGroup getParent()
Return the parent canvas group for this item.
- The parent cavas group.
getParent
protected static final Handle getParent(Handle cptr)
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).
- The X1 coordinate.
getX1
protected static final double getX1(Handle cptr)
getX2
public double getX2()
X2 coordinate fo the bounding box for this item (in canvas coordinates).
- The X2 coordinate.
getX2
protected static final double getX2(Handle cptr)
getY1
public double getY1()
Y1 coordinate fo the bounding box for this item (in canvas coordinates).
- The Y1 coordinate.
getY1
protected static final double getY1(Handle cptr)
getY2
public double getY2()
Y2 coordinate fo the bounding box for this item (in canvas coordinates).
- The Y2 coordinate.
getY2
protected static final double getY2(Handle cptr)
gnome_canvas_item_affine_absolute
protected static final void gnome_canvas_item_affine_absolute(Handle item,
double[] affine)
gnome_canvas_item_affine_relative
protected static final void gnome_canvas_item_affine_relative(Handle item,
double[] affine)
gnome_canvas_item_get_type
protected static final int gnome_canvas_item_get_type()
gnome_canvas_item_grab
protected static final int gnome_canvas_item_grab(Handle item,
int event_mask,
Handle cursor,
int etime)
gnome_canvas_item_grab_focus
protected static final void gnome_canvas_item_grab_focus(Handle item)
gnome_canvas_item_hide
protected static final void gnome_canvas_item_hide(Handle item)
gnome_canvas_item_lower
protected static final void gnome_canvas_item_lower(Handle item,
int positions)
gnome_canvas_item_lower_to_bottom
protected static final void gnome_canvas_item_lower_to_bottom(Handle item)
gnome_canvas_item_move
protected static final void gnome_canvas_item_move(Handle item,
double dx,
double dy)
gnome_canvas_item_new
protected static final Handle gnome_canvas_item_new(Handle group,
int type)
gnome_canvas_item_raise
protected static final void gnome_canvas_item_raise(Handle item,
int position)
gnome_canvas_item_raise_to_top
protected static final void gnome_canvas_item_raise_to_top(Handle item)
gnome_canvas_item_reparent
protected static final void gnome_canvas_item_reparent(Handle item,
Handle new_group)
gnome_canvas_item_request_update
protected static final void gnome_canvas_item_request_update(Handle item)
gnome_canvas_item_show
protected static final void gnome_canvas_item_show(Handle item)
gnome_canvas_item_ungrab
protected static final void gnome_canvas_item_ungrab(Handle item,
int etime)
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.