|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.glib.GObject
org.gnu.gdk.Drawable
Provides support for drawing points, lines, arcs, and text onto what we call 'drawables'. Drawables, as the name suggests, are things which support drawing onto them and are either org.gnu.gdk.Window or org.gnu.gdk.Pixmap objects.
Field Summary |
Fields inherited from class org.gnu.glib.GObject |
eventsInitialized |
Constructor Summary | |
Drawable(Handle handle)
|
Method Summary | |
void |
drawArc(boolean filled,
int x,
int y,
int width,
int height,
int angle1,
int angle2)
Draws an arc or a filled 'pie slice'. |
void |
drawArc(GC gc,
boolean filled,
int x,
int y,
int width,
int height,
int angle1,
int angle2)
Draws an arc or a filled 'pie slice'. |
void |
drawDrawable(Drawable src,
int xsrc,
int ysrc,
int xdest,
int ydest,
int width,
int height)
Convience method that copies the width x height region of the Drawable at coordinates (xsrc,ysrc) to coordinates (xdest,ydest) using the default GC. |
void |
drawDrawable(GC gc,
Drawable src,
int xsrc,
int ysrc,
int xdest,
int ydest,
int width,
int height)
Copies the width x height region of the Drawable at coordinates (xsrc,ysrc) to coordinates (xdest,ydest). |
void |
drawGlyphs(Font font,
int x,
int y,
GlyphString glyphs)
This is a low-level function. |
void |
drawGlyphs(GC gc,
Font font,
int x,
int y,
GlyphString glyphs)
This is a low-level function. |
void |
drawGrayImage(GC gc,
int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride)
|
void |
drawGrayImage(int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride)
|
void |
drawImage(GC gc,
Image image,
int xsrc,
int ysrc,
int xdest,
int ydest,
int width,
int height)
Draw an Image onto this Drawable. |
void |
drawImage(Image image,
int xsrc,
int ysrc,
int xdest,
int ydest,
int width,
int height)
Draw an Image onto this Drawable using the default GC. |
void |
drawIndexedImage(GC gc,
int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride,
RgbCmap cmap)
|
void |
drawIndexedImage(int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride,
RgbCmap cmap)
|
void |
drawLayout(GC gc,
int x,
int y,
Layout layout)
Render a Layout onto this Drawable. |
void |
drawLayout(int x,
int y,
Layout layout)
Render a Layout onto this Drawable using the default GC. |
void |
drawLayoutLine(GC gc,
int x,
int y,
LayoutLine line)
Render a LayoutLine onto this Drawable. |
void |
drawLayoutLine(int x,
int y,
LayoutLine line)
Render a LayoutLine onto this Drawable using the default GC. |
void |
drawLayoutLineWithColors(GC gc,
int x,
int y,
LayoutLine line,
Color foreground,
Color background)
Render a LayoutLne onto this Drawable overriding the layout's normal colors with the provided forground and background. |
void |
drawLayoutLineWithColors(int x,
int y,
LayoutLine line,
Color foreground,
Color background)
Render a LayoutLne onto this Drawable overriding the layout's normal colors with the provided forground and background and using the default GC. |
void |
drawLayoutWithColors(GC gc,
int x,
int y,
Layout layout,
Color foreground,
Color background)
Render a Layout onto this Drawable overriding the layout's normal colors with the provided forground and background. |
void |
drawLayoutWithColors(int x,
int y,
Layout layout,
Color foreground,
Color background)
Render a Layout onto this Drawable overriding the layout's normal colors with the provided forground and background using the default GC. |
void |
drawLine(GC gc,
int x1,
int y1,
int x2,
int y2)
Draw a line using the foreground color and other attributes of the GC. |
void |
drawLine(int x1,
int y1,
int x2,
int y2)
Draw a line using the foreground color and other attributes of the default GC. |
void |
drawLines(GC gc,
Point[] points)
Draw a series of lines connecting the given points. |
void |
drawLines(Point[] points)
Draw a series of lines connecting the given points. |
void |
drawPixbuf(GC gc,
Pixbuf pixbuf,
int srcx,
int srcy,
int destx,
int desty,
int width,
int height,
RgbDither dither,
int xdither,
int ydither)
Render a rectangular portion of a Pixbuf to this Drawable. |
void |
drawPixbuf(Pixbuf pixbuf,
int srcx,
int srcy,
int destx,
int desty,
int width,
int height,
RgbDither dither,
int xdither,
int ydither)
Render a rectangular portion of a Pixbuf to this Drawable. |
void |
drawPoint(GC gc,
int x,
int y)
Draw a point using the foreground color and other attributes of the GC. |
void |
drawPoint(int x,
int y)
Draw a point using the foreground color and other attributes of the default GC. |
void |
drawPoints(GC gc,
Point[] points)
Draw a number of points using the forground color and other attributes of the GC. |
void |
drawPoints(Point[] points)
Draw a number of points using the forground color and other attributes of the default GC. |
void |
drawPolygon(boolean filled,
Point[] points)
Convience method that draws an outlined or filled polygon using the default GC. |
void |
drawPolygon(GC gc,
boolean filled,
Point[] points)
Draws an outlined or filled polygon. |
void |
drawRectangle(boolean filled,
int x,
int y,
int width,
int height)
Draws a rectangle outlined or filled using the forground color and other attributes of the default GC. |
void |
drawRectangle(GC gc,
boolean filled,
int x,
int y,
int width,
int height)
Draws a rectangle outlined or filled using the forground color and other attributes of the GC. |
void |
drawRGB32Image(GC gc,
int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride)
|
void |
drawRGB32Image(int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride)
|
void |
drawRGB32ImageDitherAlign(GC gc,
int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride,
int xdith,
int ydith)
|
void |
drawRGB32ImageDitherAlign(int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride,
int xdith,
int ydith)
|
void |
drawRGBImage(GC gc,
int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride)
|
void |
drawRGBImage(int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride)
|
void |
drawRGBImageDitherAlign(GC gc,
int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride,
int xdith,
int ydith)
|
void |
drawRGBImageDitherAlign(int x,
int y,
int width,
int height,
RgbDither dither,
byte[] buffer,
int rowStride,
int xdith,
int ydith)
|
void |
drawSegments(GC gc,
Segment[] segments)
Draw a number of unconnected lines. |
void |
drawSegments(Segment[] segments)
Draw a number of unconnected lines using the default GC. |
protected static void |
gdk_draw_arc(Handle drawable,
Handle gc,
boolean filled,
int x,
int y,
int width,
int height,
int angle1,
int angle2)
|
protected static void |
gdk_draw_drawable(Handle drawable,
Handle gc,
Handle src,
int xsrc,
int ysrc,
int xdest,
int ydest,
int width,
int height)
|
protected static void |
gdk_draw_glyphs(Handle drawable,
Handle gc,
Handle font,
int x,
int y,
Handle glyphs)
|
protected static void |
gdk_draw_gray_image(Handle drawable,
Handle gc,
int x,
int y,
int width,
int height,
int dith,
byte[] rgbBuf,
int rowstride)
|
protected static void |
gdk_draw_image(Handle drawable,
Handle gc,
Handle image,
int xsrc,
int ysrc,
int xdest,
int ydest,
int width,
int height)
|
protected static void |
gdk_draw_indexed_image(Handle drawable,
Handle gc,
int x,
int y,
int width,
int height,
int dith,
byte[] buf,
int rowstride,
Handle cmap)
|
protected static void |
gdk_draw_layout_line_with_colors(Handle drawable,
Handle gc,
int x,
int y,
Handle line,
Handle foreground,
Handle background)
|
protected static void |
gdk_draw_layout_line(Handle drawable,
Handle gc,
int x,
int y,
Handle line)
|
protected static void |
gdk_draw_layout_with_colors(Handle drawable,
Handle gc,
int x,
int y,
Handle layout,
Handle foreground,
Handle background)
|
protected static void |
gdk_draw_layout(Handle drawable,
Handle gc,
int x,
int y,
Handle layout)
|
protected static void |
gdk_draw_line(Handle drawable,
Handle gc,
int x1,
int y1,
int x2,
int y2)
|
protected static void |
gdk_draw_lines(Handle drawable,
Handle gc,
Handle[] points)
|
protected static void |
gdk_draw_pixbuf(Handle drawable,
Handle gc,
Handle pixbuf,
int srcx,
int srcy,
int destx,
int desty,
int width,
int height,
int dither,
int xdith,
int ydith)
|
protected static void |
gdk_draw_point(Handle drawable,
Handle gc,
int x,
int y)
|
protected static void |
gdk_draw_points(Handle drawable,
Handle gc,
Handle[] points)
|
protected static void |
gdk_draw_polygon(Handle drawable,
Handle gc,
boolean filled,
Handle[] points)
|
protected static void |
gdk_draw_rectangle(Handle drawable,
Handle gc,
boolean filled,
int x,
int y,
int width,
int height)
|
protected static void |
gdk_draw_rgb_32_image_dithalign(Handle drawable,
Handle gc,
int x,
int y,
int width,
int height,
int dith,
byte[] rgbBuf,
int rowstride,
int xDith,
int yDith)
|
protected static void |
gdk_draw_rgb_32_image(Handle drawable,
Handle gc,
int x,
int y,
int width,
int height,
int dith,
byte[] rgbBuf,
int rowstride)
|
protected static void |
gdk_draw_rgb_image_dithalign(Handle drawable,
Handle gc,
int x,
int y,
int width,
int height,
int dith,
byte[] rgbBuf,
int rowstride,
int xDith,
int yDith)
|
protected static void |
gdk_draw_rgb_image(Handle drawable,
Handle gc,
int x,
int y,
int width,
int height,
int dith,
byte[] rgbBuf,
int rowstride)
|
protected static void |
gdk_draw_segments(Handle drawable,
Handle gc,
Handle[] segments)
|
protected static Handle |
gdk_drawable_get_clip_region(Handle drawable)
|
protected static Handle |
gdk_drawable_get_colormap(Handle drawable)
|
protected static int |
gdk_drawable_get_depth(Handle drawable)
|
protected static Handle |
gdk_drawable_get_display(Handle drawable)
|
protected static Handle |
gdk_drawable_get_image(Handle drawable,
int x,
int y,
int width,
int height)
|
protected static Handle |
gdk_drawable_get_screen(Handle drawable)
|
protected static void |
gdk_drawable_get_size(Handle drawable,
int[] width,
int[] height)
|
protected static int |
gdk_drawable_get_type()
|
protected static Handle |
gdk_drawable_get_visible_region(Handle drawable)
|
protected static Handle |
gdk_drawable_get_visual(Handle drawable)
|
protected static void |
gdk_drawable_set_colormap(Handle drawable,
Handle colormap)
|
Region |
getClipRegion()
Computes the Region of a Drawable that potentially can be written to by drawing primitives. |
Colormap |
getColormap()
Gets the Colormap for the Drawable if one is set; returns null otherwise. |
int |
getDepth()
Obtains the bit depth of the Drawable, this is, the number of bits that make up a pixel. |
Display |
getDisplay()
Get the Display associated with the Drawable. |
Image |
getImage(int x,
int y,
int width,
int height)
Obtains the pixels from a server-side Drawable as a client-side Image. |
Screen |
getScreen()
Get the Screen associated with the Drawable. |
Dimension |
getSize()
Returns the size of the Drawable. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
Region |
getVisibleRegion()
Computes the Region of a Drawable that is potentially visible. |
Visual |
getVisual()
Gets the Visual describing the pixel format of this Drawable. |
void |
setColormap(Colormap cmap)
Sets the Colormap associated with the Drawable. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Drawable(Handle handle)
Method Detail |
public Dimension getSize()
public void setColormap(Colormap cmap)
cmap
- public Colormap getColormap()
public Visual getVisual()
public int getDepth()
public Image getImage(int x, int y, int width, int height)
x
- y
- width
- height
- public Region getClipRegion()
public Region getVisibleRegion()
public void drawRGBImage(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride)
public void drawRGBImage(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride)
public void drawRGBImageDitherAlign(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith)
public void drawRGBImageDitherAlign(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith)
public void drawRGB32Image(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride)
public void drawRGB32Image(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride)
public void drawRGB32ImageDitherAlign(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith)
public void drawRGB32ImageDitherAlign(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, int xdith, int ydith)
public void drawGrayImage(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride)
public void drawGrayImage(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride)
public void drawIndexedImage(GC gc, int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, RgbCmap cmap)
public void drawIndexedImage(int x, int y, int width, int height, RgbDither dither, byte[] buffer, int rowStride, RgbCmap cmap)
public void drawPolygon(GC gc, boolean filled, Point[] points)
gc
- filled
- points
- public void drawPolygon(boolean filled, Point[] points)
filled
- points
- public void drawDrawable(GC gc, Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
gc
- src
- xsrc
- ysrc
- xdest
- ydest
- width
- height
- public void drawDrawable(Drawable src, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
src
- xsrc
- ysrc
- xdest
- ydest
- width
- height
- public void drawImage(GC gc, Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
gc
- image
- xsrc
- ysrc
- xdest
- ydest
- width
- height
- public void drawImage(Image image, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
image
- xsrc
- ysrc
- xdest
- ydest
- width
- height
- public void drawPoints(GC gc, Point[] points)
gc
- points
- public void drawPoints(Point[] points)
points
- public void drawSegments(GC gc, Segment[] segments)
gc
- segments
- public void drawSegments(Segment[] segments)
segments
- public void drawLines(GC gc, Point[] points)
gc
- points
- public void drawLines(Point[] points)
points
- public void drawGlyphs(GC gc, Font font, int x, int y, GlyphString glyphs)
A glyph is a single image in a font. This method draws a sequence of glyphs.
gc
- font
- x
- y
- glyphs
- public void drawGlyphs(Font font, int x, int y, GlyphString glyphs)
A glyph is a single image in a font. This method draws a sequence of glyphs.
font
- x
- y
- glyphs
- public void drawLayoutLine(GC gc, int x, int y, LayoutLine line)
gc
- x
- y
- line
- public void drawLayoutLine(int x, int y, LayoutLine line)
x
- y
- line
- public void drawLayout(GC gc, int x, int y, Layout layout)
gc
- x
- y
- layout
- public void drawLayout(int x, int y, Layout layout)
x
- y
- layout
- public void drawLayoutLineWithColors(GC gc, int x, int y, LayoutLine line, Color foreground, Color background)
gc
- x
- y
- line
- foreground
- background
- public void drawLayoutLineWithColors(int x, int y, LayoutLine line, Color foreground, Color background)
x
- y
- line
- foreground
- background
- public void drawLayoutWithColors(GC gc, int x, int y, Layout layout, Color foreground, Color background)
gc
- x
- y
- layout
- foreground
- background
- public void drawLayoutWithColors(int x, int y, Layout layout, Color foreground, Color background)
x
- y
- layout
- foreground
- background
- public Display getDisplay()
public Screen getScreen()
public void drawPoint(GC gc, int x, int y)
gc
- x
- y
- public void drawPoint(int x, int y)
x
- y
- public void drawLine(GC gc, int x1, int y1, int x2, int y2)
gc
- x1
- y1
- x2
- y2
- public void drawLine(int x1, int y1, int x2, int y2)
x1
- y1
- x2
- y2
- public void drawPixbuf(GC gc, Pixbuf pixbuf, int srcx, int srcy, int destx, int desty, int width, int height, RgbDither dither, int xdither, int ydither)
gc
- pixbuf
- srcx
- srcy
- destx
- desty
- width
- height
- dither
- xdither
- ydither
- public void drawPixbuf(Pixbuf pixbuf, int srcx, int srcy, int destx, int desty, int width, int height, RgbDither dither, int xdither, int ydither)
pixbuf
- srcx
- srcy
- destx
- desty
- width
- height
- dither
- xdither
- ydither
- public void drawRectangle(GC gc, boolean filled, int x, int y, int width, int height)
gc
- filled
- x
- y
- width
- height
- public void drawRectangle(boolean filled, int x, int y, int width, int height)
filled
- x
- y
- width
- height
- public void drawArc(GC gc, boolean filled, int x, int y, int width, int height, int angle1, int angle2)
gc
- filled
- x
- y
- width
- height
- angle1
- angle2
- public void drawArc(boolean filled, int x, int y, int width, int height, int angle1, int angle2)
filled
- x
- y
- width
- height
- angle1
- angle2
- public static Type getType()
protected static final int gdk_drawable_get_type()
protected static final Handle gdk_drawable_get_display(Handle drawable)
protected static final Handle gdk_drawable_get_screen(Handle drawable)
protected static final Handle gdk_drawable_get_visual(Handle drawable)
protected static final void gdk_drawable_set_colormap(Handle drawable, Handle colormap)
protected static final Handle gdk_drawable_get_colormap(Handle drawable)
protected static final int gdk_drawable_get_depth(Handle drawable)
protected static final void gdk_drawable_get_size(Handle drawable, int[] width, int[] height)
protected static final Handle gdk_drawable_get_clip_region(Handle drawable)
protected static final Handle gdk_drawable_get_visible_region(Handle drawable)
protected static final Handle gdk_drawable_get_image(Handle drawable, int x, int y, int width, int height)
protected static final void gdk_draw_point(Handle drawable, Handle gc, int x, int y)
protected static final void gdk_draw_points(Handle drawable, Handle gc, Handle[] points)
protected static final void gdk_draw_line(Handle drawable, Handle gc, int x1, int y1, int x2, int y2)
protected static final void gdk_draw_lines(Handle drawable, Handle gc, Handle[] points)
protected static final void gdk_draw_pixbuf(Handle drawable, Handle gc, Handle pixbuf, int srcx, int srcy, int destx, int desty, int width, int height, int dither, int xdith, int ydith)
protected static final void gdk_draw_segments(Handle drawable, Handle gc, Handle[] segments)
protected static final void gdk_draw_rectangle(Handle drawable, Handle gc, boolean filled, int x, int y, int width, int height)
protected static final void gdk_draw_arc(Handle drawable, Handle gc, boolean filled, int x, int y, int width, int height, int angle1, int angle2)
protected static final void gdk_draw_polygon(Handle drawable, Handle gc, boolean filled, Handle[] points)
protected static final void gdk_draw_glyphs(Handle drawable, Handle gc, Handle font, int x, int y, Handle glyphs)
protected static final void gdk_draw_layout_line(Handle drawable, Handle gc, int x, int y, Handle line)
protected static final void gdk_draw_layout_line_with_colors(Handle drawable, Handle gc, int x, int y, Handle line, Handle foreground, Handle background)
protected static final void gdk_draw_layout(Handle drawable, Handle gc, int x, int y, Handle layout)
protected static final void gdk_draw_layout_with_colors(Handle drawable, Handle gc, int x, int y, Handle layout, Handle foreground, Handle background)
protected static final void gdk_draw_drawable(Handle drawable, Handle gc, Handle src, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
protected static final void gdk_draw_image(Handle drawable, Handle gc, Handle image, int xsrc, int ysrc, int xdest, int ydest, int width, int height)
protected static final void gdk_draw_rgb_image(Handle drawable, Handle gc, int x, int y, int width, int height, int dith, byte[] rgbBuf, int rowstride)
protected static final void gdk_draw_rgb_image_dithalign(Handle drawable, Handle gc, int x, int y, int width, int height, int dith, byte[] rgbBuf, int rowstride, int xDith, int yDith)
protected static final void gdk_draw_rgb_32_image(Handle drawable, Handle gc, int x, int y, int width, int height, int dith, byte[] rgbBuf, int rowstride)
protected static final void gdk_draw_rgb_32_image_dithalign(Handle drawable, Handle gc, int x, int y, int width, int height, int dith, byte[] rgbBuf, int rowstride, int xDith, int yDith)
protected static final void gdk_draw_gray_image(Handle drawable, Handle gc, int x, int y, int width, int height, int dith, byte[] rgbBuf, int rowstride)
protected static final void gdk_draw_indexed_image(Handle drawable, Handle gc, int x, int y, int width, int height, int dith, byte[] buf, int rowstride, Handle cmap)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |