gnu.x11
Class Drawable

java.lang.Object
  extended by gnu.x11.Resource
      extended by gnu.x11.Drawable
Direct Known Subclasses:
DBE.BackBuffer, Pixmap, Window

public abstract class Drawable
extends Resource

X drawable.


Field Summary
static int COMPLEX
           
static int CONVEX
           
static int CURSOR
           
 int height
           
static int NONCONVEX
           
static int ORIGIN
           
static int PREVIOUS
           
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, Arc arc, boolean fill)
           
 void arc(GC gc, int x, int y, int width, int height, int angle1, int angle2, boolean fill)
           
 Size best_size(int klass, int width, int height)
           
 void copy_area(Drawable src, GC gc)
           
 void copy_area(Drawable src, GC gc, int src_x, int src_y, int width, int height, int dst_x, int dst_y)
           
 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_poly(GC gc, Point[] points, int shape, int coordinate_mode)
          This request will be aggregated.
 void horizontal(GC gc, int x1, int x2, int y)
           
 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)
           
 Data image(int x, int y, int width, int height, int plane_mask, int format)
           
 void line(GC gc, int x1, int y1, int x2, int y2)
           
 void point(GC gc, int x, int y)
           
 void point(GC gc, Point point)
           
 void poly_arc(GC gc, Arc[] arcs, boolean fill)
          This request will be aggregated.
 void poly_dot(GC gc, Point[] points, int coordinate_mode, boolean join)
          This request will be aggregated.
 void poly_line(GC gc, Point[] points, int coordinate_mode)
           
 void poly_point(GC gc, Point[] points, int coordinate_mode)
           
 void poly_rectangle(GC gc, Rectangle[] rectangles, boolean fill)
          This request will be aggregated.
 void poly_segment(GC gc, Segment[] segments)
          This request will be aggregated.
 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_clear(GC gc)
           
 void rectangle(GC gc, int x, int y, int width, int height, boolean fill)
           
 void rectangle(GC gc, Rectangle rectangle, boolean fill)
           
 void segment(GC gc, int x1, int y1, int x2, int y2)
           
 void segment(GC gc, Segment segment)
           
 void text(GC gc, int x, int y, java.lang.String s)
           
 void text(GC gc, int x, int y, java.lang.String s, int delta, Font font)
           
 void vertical(GC gc, int x, int y1, int y2)
           
 
Methods inherited from class gnu.x11.Resource
unintern
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

width

public int width

height

public int height

ORIGIN

public static final int ORIGIN
See Also:
Constant Field Values

PREVIOUS

public static final int PREVIOUS
See Also:
Constant Field Values

COMPLEX

public static final int COMPLEX
See Also:
Constant Field Values

NONCONVEX

public static final int NONCONVEX
See Also:
Constant Field Values

CONVEX

public static final int CONVEX
See Also:
Constant Field Values

CURSOR

public static final int CURSOR
See Also:
Constant Field Values

TILE

public static final int TILE
See Also:
Constant Field Values

STIPPLE

public static final int STIPPLE
See Also:
Constant Field Values
Constructor Detail

Drawable

public Drawable(int id)
Predefined.


Drawable

public Drawable(Display display)
Create.


Drawable

public Drawable(Display display,
                int id)
Intern.

Method Detail

copy_area

public void copy_area(Drawable src,
                      GC gc,
                      int src_x,
                      int src_y,
                      int width,
                      int height,
                      int dst_x,
                      int dst_y)
See Also:
XCopyArea

copy_plane

public 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)
See Also:
XCopyPlane

poly_dot

public void poly_dot(GC gc,
                     Point[] points,
                     int coordinate_mode,
                     boolean join)
This request will be aggregated.

Parameters:
coordinate_mode - valid: ORIGIN, PREVIOUS
join - if join, draw line; otherwise, draw point
See Also:
XDrawPoints, XDrawLines, aggregation

poly_segment

public void poly_segment(GC gc,
                         Segment[] segments)
This request will be aggregated.

See Also:
XDrawSegments, aggregation

poly_rectangle

public void poly_rectangle(GC gc,
                           Rectangle[] rectangles,
                           boolean fill)
This request will be aggregated.

See Also:
XDrawRectangles, XFillRectangles, aggregation

poly_arc

public void poly_arc(GC gc,
                     Arc[] arcs,
                     boolean fill)
This request will be aggregated.

See Also:
XDrawArcs, XFillArcs, aggregation

fill_poly

public void fill_poly(GC gc,
                      Point[] points,
                      int shape,
                      int coordinate_mode)
This request will be aggregated.

Parameters:
shape - valid: COMPLEX, NONCONVEX, CONVEX
coordinate_mode - valid: ORIGIN, PREVIOUS
See Also:
XFillPolygon, aggregation

put_small_image

public void put_small_image(GC gc,
                            Image image,
                            int y1,
                            int y2,
                            int x,
                            int y)

image

public Data image(int x,
                  int y,
                  int width,
                  int height,
                  int plane_mask,
                  int format)
See Also:
XGetImage

poly_text

public void poly_text(GC gc,
                      int x,
                      int y,
                      Text[] texts)
See Also:
XDrawText

poly_text16

public void poly_text16(GC gc,
                        int x,
                        int y,
                        Text[] texts)
See Also:
XDrawText16

image_text

public void image_text(GC gc,
                       int x,
                       int y,
                       java.lang.String s)
See Also:
XDrawImageString

image_text16

public void image_text16(GC gc,
                         int x,
                         int y,
                         java.lang.String s)
See Also:
XDrawImageString16

best_size

public Size best_size(int klass,
                      int width,
                      int height)
Parameters:
klass - valid: CURSOR, TILE, STIPPLE
See Also:
XQueryBestSize

arc

public void arc(GC gc,
                Arc arc,
                boolean fill)
See Also:
poly_arc(GC, Arc[], boolean)

arc

public void arc(GC gc,
                int x,
                int y,
                int width,
                int height,
                int angle1,
                int angle2,
                boolean fill)
See Also:
arc(GC, Arc, boolean)

copy_area

public void copy_area(Drawable src,
                      GC gc)
See Also:
copy_area(Drawable, GC, int, int, int, int, int, int)

horizontal

public void horizontal(GC gc,
                       int x1,
                       int x2,
                       int y)
See Also:
line(GC, int, int, int, int)

line

public void line(GC gc,
                 int x1,
                 int y1,
                 int x2,
                 int y2)
See Also:
segment(GC, Segment)

point

public void point(GC gc,
                  Point point)
See Also:
poly_dot(GC, Point[], int, boolean)

point

public void point(GC gc,
                  int x,
                  int y)
See Also:
point(GC, Point)

poly_line

public void poly_line(GC gc,
                      Point[] points,
                      int coordinate_mode)
See Also:
poly_dot(GC, Point[], int, boolean)

poly_point

public void poly_point(GC gc,
                       Point[] points,
                       int coordinate_mode)
See Also:
poly_dot(GC, Point[], int, boolean)

put_image

public void put_image(GC gc,
                      Image image,
                      int x,
                      int y)
See Also:
XPutImage, put_small_image(GC, Image, int, int, int, int)

rectangle

public void rectangle(GC gc,
                      Rectangle rectangle,
                      boolean fill)
See Also:
poly_rectangle(GC, Rectangle[], boolean)

rectangle

public void rectangle(GC gc,
                      int x,
                      int y,
                      int width,
                      int height,
                      boolean fill)
See Also:
rectangle(GC, Rectangle, boolean)

rectangle_clear

public void rectangle_clear(GC gc)
See Also:
rectangle(GC, int, int, int, int, boolean)

vertical

public void vertical(GC gc,
                     int x,
                     int y1,
                     int y2)
See Also:
line(GC, int, int, int, int)

segment

public void segment(GC gc,
                    Segment segment)
See Also:
poly_segment(GC, Segment[])

segment

public void segment(GC gc,
                    int x1,
                    int y1,
                    int x2,
                    int y2)
See Also:
segment(GC, Segment)

text

public void text(GC gc,
                 int x,
                 int y,
                 java.lang.String s,
                 int delta,
                 Font font)
See Also:
poly_text(GC, int, int, Text[])

text

public void text(GC gc,
                 int x,
                 int y,
                 java.lang.String s)
See Also:
text(GC, int, int, String, int, Font)