gnu.x11
Class GC
java.lang.Object
gnu.x11.Resource
gnu.x11.Fontable
gnu.x11.GC
public class GC
- extends Fontable
X graphics context. This is used to change settings for drawing.
Nested Class Summary |
static class |
GC.Values
X GC values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UN_SORTED
public static final int UN_SORTED
- See Also:
- Constant Field Values
Y_SORTED
public static final int Y_SORTED
- See Also:
- Constant Field Values
YX_SORTED
public static final int YX_SORTED
- See Also:
- Constant Field Values
YX_BANDED
public static final int YX_BANDED
- See Also:
- Constant Field Values
GC
public GC(Display display)
GC
public GC(GC src,
int mask)
GC
public GC(GC src)
GC
public GC(Display display,
GC.Values values)
GC
public GC(Drawable drawable,
GC.Values values)
- See Also:
create(Drawable, GC.Values)
GC
public GC(Drawable drawable)
- See Also:
GC(Drawable, GC.Values)
create
public void create(Drawable drawable,
GC.Values values)
- Creates a GC for the specified drawable with the specified values.
- See Also:
- XCreateGC
change
public void change(GC.Values values)
- Changes the current settings for this GC. This request will be aggregated.
- Parameters:
values
- the values to change- See Also:
- XChangeGC,
aggregation
copy
public void copy(GC dest,
int mask)
- Copies the state from this GC into the specified destination GC. The
mask is used to include/exclude specific state.
- Parameters:
dest
- the destination GCmask
- the state mask- See Also:
- XCopyGC
set_dashes
public void set_dashes(int dash_offset,
byte[] dashes)
- Sets the dashes used for drawing lines.
- Parameters:
dash_offset
- the dash offsetdashes
- the dashes spec- See Also:
- XSetDashes
set_clip_rectangles
public void set_clip_rectangles(int clip_x_origin,
int clip_y_origin,
Rectangle[] rectangles,
int ordering)
- Parameters:
ordering
- valid:
UN_SORTED
,
Y_SORTED
,
YX_SORTED
,
YX_BANDED
- See Also:
- XSetClipRectangles
free
public void free()
- See Also:
- XFreeGC
build
public static GC build(Display display)
- See Also:
GC(Drawable)
create
public void create()
- See Also:
create(GC.Values)
create
public void create(GC.Values values)
- See Also:
create(Drawable, GC.Values)
copy
public GC copy()
- See Also:
copy(int)
copy
public GC copy(int mask)
- See Also:
copy(GC, int)
set_arc_mode
public void set_arc_mode(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_arc_mode(int)
set_background
public void set_background(Color c)
- See Also:
set_background(int)
set_background
public void set_background(int pixel)
- See Also:
change(GC.Values)
,
GC.Values.set_background(int)
set_cap_style
public void set_cap_style(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_cap_style(int)
set_clip_mask
public void set_clip_mask(Pixmap pixmap)
- See Also:
change(GC.Values)
,
GC.Values.set_clip_mask(Pixmap)
set_clip_x_origin
public void set_clip_x_origin(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_clip_x_origin(int)
set_clip_y_origin
public void set_clip_y_origin(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_clip_y_origin(int)
set_dashes
public void set_dashes(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_dashes(int)
set_dash_offset
public void set_dash_offset(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_dash_offset(int)
set_fill_rule
public void set_fill_rule(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_fill_rule(int)
set_fill_style
public void set_fill_style(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_fill_style(int)
set_font
public void set_font(Font font)
- See Also:
change(GC.Values)
,
GC.Values.set_font(Font)
set_foreground
public void set_foreground(Color c)
- See Also:
set_foreground(int)
set_foreground
public void set_foreground(int pixel)
- See Also:
change(GC.Values)
,
GC.Values.set_foreground(int)
set_function
public void set_function(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_function(int)
set_graphics_exposures
public void set_graphics_exposures(boolean b)
- See Also:
change(GC.Values)
,
GC.Values.set_graphics_exposures(boolean)
set_join_style
public void set_join_style(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_join_style(int)
set_line_style
public void set_line_style(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_line_style(int)
set_line_width
public void set_line_width(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_line_width(int)
set_plane_mask
public void set_plane_mask(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_plane_mask(int)
set_stipple
public void set_stipple(Pixmap pixmap)
- See Also:
change(GC.Values)
,
GC.Values.set_stipple(Pixmap)
set_subwindow_mode
public void set_subwindow_mode(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_subwindow_mode(int)
set_tile
public void set_tile(Pixmap pixmap)
- See Also:
change(GC.Values)
,
GC.Values.set_tile(Pixmap)
set_tile_stipple_x_origin
public void set_tile_stipple_x_origin(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_tile_stipple_x_origin(int)
set_tile_stipple_y_origin
public void set_tile_stipple_y_origin(int i)
- See Also:
change(GC.Values)
,
GC.Values.set_tile_stipple_y_origin(int)