|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gnu.x11.Resource gnu.x11.Drawable
public abstract class Drawable
X drawable.
Nested Class Summary | |
---|---|
static class |
Drawable.GeometryInfo
|
Field Summary | |
---|---|
static int |
COMPLEX
|
static int |
CONVEX
|
static int |
CURSOR
|
int |
height
|
static int |
NONCONVEX
|
static int |
ORIGIN
Coordinate mode ORIGIN, specifies that points are always considered relative to the origin. |
static int |
PREVIOUS
Coordinate mode PREVIOUS, specifies that points are considered relative to the previous point (where the first point is usually considered relative to the origin). |
static int |
STIPPLE
|
static int |
TILE
|
int |
width
|
Fields inherited from class gnu.x11.Resource |
---|
display, id |
Constructor Summary | |
---|---|
Drawable(Display display)
Create. |
|
Drawable(Display display,
int id)
Intern. |
|
Drawable(int id)
Predefined. |
Method Summary | |
---|---|
void |
arc(GC gc,
int x,
int y,
int width,
int height,
int angle1,
int angle2)
Draws the outline of a single arc. |
Size |
best_size(int klass,
int width,
int height)
|
void |
copy_area(Drawable src,
GC gc,
int src_x,
int src_y,
int width,
int height,
int dst_x,
int dst_y)
Copies a specified rectangular area to another location. |
void |
copy_plane(Drawable src,
GC gc,
int src_x,
int src_y,
int dst_x,
int dst_y,
int width,
int height,
int bit_plane)
|
void |
fill_arc(GC gc,
int x,
int y,
int width,
int height,
int angle1,
int angle2)
Fills a single arc. |
void |
fill_poly(GC gc,
int[] xpoints,
int[] ypoints,
int npoints,
int shape,
int coordinate_mode)
|
void |
fill_poly(GC gc,
Point[] points,
int shape,
int coordinate_mode)
This request will be aggregated. |
void |
fill_rectangle(GC gc,
int x,
int y,
int width,
int height)
Fills a single rectangle. |
Drawable.GeometryInfo |
get_geometry()
|
void |
image_text(GC gc,
int x,
int y,
java.lang.String s)
|
void |
image_text16(GC gc,
int x,
int y,
java.lang.String s)
|
Image |
image(int x,
int y,
int width,
int height,
int plane_mask,
Image.Format format)
|
void |
line(GC gc,
int x1,
int y1,
int x2,
int y2)
Draws a single line. |
void |
point(GC gc,
int x,
int y)
Draws a single point. |
void |
poly_arc(GC gc,
Arc[] arcs)
|
void |
poly_fill_arc(GC gc,
Arc[] arcs)
|
void |
poly_line(GC gc,
int[] xpoints,
int[] ypoints,
int npoints,
int coordinate_mode)
Draws multiple lines that connect the specified points. |
void |
poly_line(GC gc,
int[] xpoints,
int[] ypoints,
int npoints,
int coordinate_mode,
boolean close)
|
void |
poly_line(GC gc,
Point[] points,
int coordinate_mode)
Draws multiple lines which connect the specified points. |
void |
poly_point(GC gc,
int[] xpoints,
int[] ypoints,
int npoints,
int coordinate_mode)
Draws multiple points. |
void |
poly_point(GC gc,
Point[] points,
int coordinate_mode)
Draws multiple points. |
void |
poly_rectangle(GC gc,
Rectangle[] rectangles)
Draws the outline of multiple rectangles. |
void |
poly_segment(GC gc,
Segment[] segments)
Draws multiple line segments |
void |
poly_text(GC gc,
int x,
int y,
Text[] texts)
|
void |
poly_text16(GC gc,
int x,
int y,
Text[] texts)
|
void |
put_image(GC gc,
Image image,
int x,
int y)
|
void |
put_small_image(GC gc,
Image image,
int y1,
int y2,
int x,
int y)
|
void |
rectangle(GC gc,
int x,
int y,
int width,
int height)
Draws a single rectangle. |
void |
rectangle(GC xgc,
int x,
int y,
int w,
int h,
boolean fill)
Deprecated. |
void |
segment(GC gc,
int x1,
int y1,
int x2,
int y2)
|
void |
text(GC gc,
int x,
int y,
java.lang.String s)
|
void |
text16(GC gc,
int x,
int y,
java.lang.String s)
|
void |
text8(GC gc,
int x,
int y,
java.lang.String s,
int delta,
Font font)
|
Methods inherited from class gnu.x11.Resource |
---|
id, unintern |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int width
public int height
public static final int ORIGIN
public static final int PREVIOUS
public static final int COMPLEX
public static final int NONCONVEX
public static final int CONVEX
public static final int CURSOR
public static final int TILE
public static final int STIPPLE
Constructor Detail |
---|
public Drawable(int id)
public Drawable(Display display)
public Drawable(Display display, int id)
Method Detail |
---|
public Drawable.GeometryInfo get_geometry()
public void copy_area(Drawable src, GC gc, int src_x, int src_y, int width, int height, int dst_x, int dst_y)
src
- the source drawablegc
- the GC for the operationsrc_x
- the source rectangle, x coordinatesrc_y
- the source rectangle, y coordinatewidth
- the width of the area to copyheight
- the height of the area to copydst_x
- the destination rectangle, x coordinatedst_y
- the destination rectangle, y coordinatepublic void copy_plane(Drawable src, GC gc, int src_x, int src_y, int dst_x, int dst_y, int width, int height, int bit_plane)
public void poly_point(GC gc, int[] xpoints, int[] ypoints, int npoints, int coordinate_mode)
gc
- the GC to usexpoints
- the points' x coordinatesypoints
- the points' y coodinatesnpoints
- the number of pointscoordinate_mode
- valid: ORIGIN
, PREVIOUS
public void poly_point(GC gc, Point[] points, int coordinate_mode)
gc
- the GC to usexpoints
- the points' x coordinatesypoints
- the points' y coodinatesnpoints
- the number of pointscoordinate_mode
- valid: ORIGIN
, PREVIOUS
public void poly_line(GC gc, int[] xpoints, int[] ypoints, int npoints, int coordinate_mode)
gc
- the GC to usexpoints
- the points' x coordinatesypoints
- the points' y coodinatesnpoints
- the number of pointscoordinate_mode
- valid: ORIGIN
, PREVIOUS
public void poly_line(GC gc, int[] xpoints, int[] ypoints, int npoints, int coordinate_mode, boolean close)
public void poly_line(GC gc, Point[] points, int coordinate_mode)
gc
- the GC to usepoints
- the points that make up the linescoordinate_mode
- valid: ORIGIN
, PREVIOUS
public void poly_segment(GC gc, Segment[] segments)
gc
- the GC to usesegments
- the line segments to drawpublic void poly_rectangle(GC gc, Rectangle[] rectangles)
gc
- the GC to userectangles
- the rectangles to drawaggregation
public void poly_arc(GC gc, Arc[] arcs)
public void poly_fill_arc(GC gc, Arc[] arcs)
public void fill_poly(GC gc, Point[] points, int shape, int coordinate_mode)
shape
- valid:
COMPLEX
,
NONCONVEX
,
CONVEX
coordinate_mode
- valid:
ORIGIN
,
PREVIOUS
aggregation
public void fill_poly(GC gc, int[] xpoints, int[] ypoints, int npoints, int shape, int coordinate_mode)
public void put_small_image(GC gc, Image image, int y1, int y2, int x, int y)
public Image image(int x, int y, int width, int height, int plane_mask, Image.Format format)
public void poly_text(GC gc, int x, int y, Text[] texts)
public void poly_text16(GC gc, int x, int y, Text[] texts)
public void image_text(GC gc, int x, int y, java.lang.String s)
public void image_text16(GC gc, int x, int y, java.lang.String s)
public Size best_size(int klass, int width, int height)
klass
- valid:
CURSOR
,
TILE
,
STIPPLE
public void arc(GC gc, int x, int y, int width, int height, int angle1, int angle2)
gc
- the GC to usex
- the bounding rectangle, x coordinatey
- the bounding rectangle, y coordinatew
- the bounding rectangle, widthh
- the bounding rectangle, heightangle1
- the start angle, from 3 o'clock ccw, in degreesangle2
- the span angle, from angle1 ccw, in degreespoly_arc(GC, Arc[])
public void fill_arc(GC gc, int x, int y, int width, int height, int angle1, int angle2)
gc
- the GC to usex
- the bounding rectangle, x coordinatey
- the bounding rectangle, y coordinatew
- the bounding rectangle, widthh
- the bounding rectangle, heightangle1
- the start angle, from 3 o'clock ccw, in degreesangle2
- the span angle, from angle1 ccw, in degreespoly_arc(GC, Arc[])
public void line(GC gc, int x1, int y1, int x2, int y2)
gc
- the GC to usex1
- the start point, x coordinatey1
- the start point, y coordinatex2
- the end point, x coordinatey2
- the end point, y coordinatepublic void segment(GC gc, int x1, int y1, int x2, int y2)
public void point(GC gc, int x, int y)
x
- the x coordinatey
- the y coordinatepublic void put_image(GC gc, Image image, int x, int y)
public void rectangle(GC gc, int x, int y, int width, int height)
gc
- the graphic contextx
- the upper left corner, x coordinatey
- the upper left corner, y coordinatewidth
- the widthheight
- the heightpoly_rectangle(GC, Rectangle[])
public void fill_rectangle(GC gc, int x, int y, int width, int height)
gc
- the graphic contextx
- the upper left corner, x coordinatey
- the upper left corner, y coordinatewidth
- the widthheight
- the height#poly_fill_rectangle(GC, Rectangle[])
public void text8(GC gc, int x, int y, java.lang.String s, int delta, Font font)
poly_text(GC, int, int, Text[])
public void text(GC gc, int x, int y, java.lang.String s)
#text(GC, int, int, String, int, Font)
public void text16(GC gc, int x, int y, java.lang.String s)
public void rectangle(GC xgc, int x, int y, int w, int h, boolean fill)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |