org.gnu.gnome

Class CanvasRect


public class CanvasRect
extends CanvasRE

The GnomeCanvasRect is a GnomeCanvasItem that draws itself as a rectangle on a GnomeCanvas.

Field Summary

Fields inherited from class org.gnu.gnome.CanvasRE

ARG_NAME_FILL_COLOR, ARG_NAME_FILL_COLOR_GDK, ARG_NAME_FILL_COLOR_RGBA, ARG_NAME_FILL_STIPPLE, ARG_NAME_OUTLINE_COLOR, ARG_NAME_OUTLINE_COLOR_GDK, ARG_NAME_OUTLINE_COLOR_RGBA, ARG_NAME_OUTLINE_STIPPLE, ARG_NAME_WIDTH_PIXELS, ARG_NAME_WIDTH_UNITS, ARG_NAME_X1, ARG_NAME_X2, ARG_NAME_Y1, ARG_NAME_Y2

Constructor Summary

CanvasRect(CanvasGroup group)
CanvasRect(CanvasGroup group, double x1, double y1, double x2, double y2, Color fill_color, Color outline_color, Bitmap fill_stipple, Bitmap outline_stipple, double width_units)
Creates a new CanvasRect object.
CanvasRect(CanvasGroup group, double x1, double y1, double x2, double y2, Color fill_color, Color outline_color, Bitmap fill_stipple, Bitmap outline_stipple, int width_pixels)
Creates a new CanvasRect object.
CanvasRect(CanvasGroup group, double x1, double y1, double x2, double y2, int fill_color, int outline_color, double width_units)
Creates a new CanvasRect object.
CanvasRect(CanvasGroup group, double x1, double y1, double x2, double y2, int fill_color, int outline_color, int width_pixels)
Creates a new CanvasRect object.

Method Summary

static Type
getType()
Retrieve the runtime type used by the GLib library.
protected static int
gnome_canvas_rect_get_type()

Methods inherited from class org.gnu.gnome.CanvasRE

getType, gnome_canvas_re_get_type, gnome_canvas_re_new_gdk_wpix, gnome_canvas_re_new_gdk_wunit, gnome_canvas_re_new_rgba_wpix, gnome_canvas_re_new_rgba_wunit, gnome_canvas_request_redraw

Methods inherited from class org.gnu.gnome.CanvasShape

getType, gnome_canvas_shape_get_path_def, gnome_canvas_shape_get_type, gnome_canvas_shape_set_path_def

Methods inherited from class org.gnu.gnome.CanvasItem

affineAbsolute, affineRelative, getCanvas, getCanvas, getParent, getParent, getType, getX1, getX1, getX2, getX2, getY1, getY1, getY2, getY2, gnome_canvas_item_affine_absolute, gnome_canvas_item_affine_relative, gnome_canvas_item_get_type, gnome_canvas_item_grab, gnome_canvas_item_grab_focus, gnome_canvas_item_hide, gnome_canvas_item_lower, gnome_canvas_item_lower_to_bottom, gnome_canvas_item_move, gnome_canvas_item_new, gnome_canvas_item_raise, gnome_canvas_item_raise_to_top, gnome_canvas_item_reparent, gnome_canvas_item_request_update, gnome_canvas_item_show, gnome_canvas_item_ungrab, hide, lower, lowerToBotton, move, raise, raiseToTop, show

Constructor Details

CanvasRect

public CanvasRect(CanvasGroup group)


CanvasRect

public CanvasRect(CanvasGroup group,
                  double x1,
                  double y1,
                  double x2,
                  double y2,
                  Color fill_color,
                  Color outline_color,
                  Bitmap fill_stipple,
                  Bitmap outline_stipple,
                  double width_units)
Creates a new CanvasRect object.

Parameters:
group - The parent group for the new CanvasItem.
x1 - The leftmost coordinate.
y1 - The topmost coordinate.
x2 - The rightmost coordinate.
y2 - The bottommost coordinate.
fill_color - Fill color to be used.
outline_color - Outline color or null for transparent.
fill_stipple - Stipple used when drawing fill.
outline_stipple - Stipple used when drawing outline.
width_units - Outline width specified in Canvas units.


CanvasRect

public CanvasRect(CanvasGroup group,
                  double x1,
                  double y1,
                  double x2,
                  double y2,
                  Color fill_color,
                  Color outline_color,
                  Bitmap fill_stipple,
                  Bitmap outline_stipple,
                  int width_pixels)
Creates a new CanvasRect object.

Parameters:
group - The parent group for the new CanvasItem.
x1 - The leftmost coordinate.
y1 - The topmost coordinate.
x2 - The rightmost coordinate.
y2 - The bottommost coordinate.
fill_color - Fill color to be used.
outline_color - Outline color or null for transparent.
fill_stipple - Stipple used when drawing fill.
outline_stipple - Stipple used when drawing outline.
width_pixels - Outline width specified in pixels, independent of zoom factor.


CanvasRect

public CanvasRect(CanvasGroup group,
                  double x1,
                  double y1,
                  double x2,
                  double y2,
                  int fill_color,
                  int outline_color,
                  double width_units)
Creates a new CanvasRect object.

Parameters:
group - The parent group for the new CanvasItem.
x1 - The leftmost coordinate.
y1 - The topmost coordinate.
x2 - The rightmost coordinate.
y2 - The bottommost coordinate.
fill_color - Fill color to be used.
outline_color - Outline color.
width_units - Outline width specified in Canvas units.


CanvasRect

public CanvasRect(CanvasGroup group,
                  double x1,
                  double y1,
                  double x2,
                  double y2,
                  int fill_color,
                  int outline_color,
                  int width_pixels)
Creates a new CanvasRect object.

Parameters:
group - The parent group for the new CanvasItem.
x1 - The leftmost coordinate.
y1 - The topmost coordinate.
x2 - The rightmost coordinate.
y2 - The bottommost coordinate.
fill_color - Fill color to be used.
outline_color - Outline color.
width_pixels - Outline width specified in pixels, independent of zoom factor.

Method Details

getType

public static Type getType()
Retrieve the runtime type used by the GLib library.
Overrides:
getType in interface CanvasRE


gnome_canvas_rect_get_type

protected static final int gnome_canvas_rect_get_type()