gnu.x11
Class GC.Values

java.lang.Object
  extended by gnu.x11.ValueList
      extended by gnu.x11.GC.Values
Enclosing class:
GC

public static class GC.Values
extends ValueList

X GC values.


Field Summary
static int AND
          src AND dst.
static int AND_INVERTED
          NOT src AND dst.
static int AND_REVERSE
          src AND NOT dst.
static int BEVEL
           
static int BUTT
           
static int CAP_ROUND
           
static int CHORD
           
static int CLEAR
          0.
static int CLIP_BY_CHILDREN
           
static int COPY
          src.
static int COPY_INVERTED
          NOT src.
static int DOUBLE_DASH
           
static GC.Values EMPTY
           
static int EQUIV
          NOT src XOR dst.
static int EVEN_ODD
           
static int INCLUDE_INTERIORS
           
static int INVERT
          NOT dst.
static int JOIN_ROUND
           
static int MITER
           
static int NAND
          NOT src OR NOT dst.
static int NOOP
          dst.
static int NOR
          NOT src AND NOT dst.
static int NOT_LAST
           
static int ON_OFF_DASH
           
static int OPAQUE_STIPPLED
           
static int OR
          src OR dst.
static int OR_INVERTED
          NOT src OR dst.
static int OR_REVERSE
          src OR NOT dst.
static int PIE_SLICE
           
static int PROJECTING
           
static int SET
          1.
static int SOLID
           
static int STIPPLED
           
static int TILED
           
static int WINDING
           
static int XOR
          src XOR dst.
 
Fields inherited from class gnu.x11.ValueList
ALL, bitmask, data
 
Constructor Summary
GC.Values()
           
 
Method Summary
 java.lang.Object clone()
           
 void set_arc_mode(int i)
           
 void set_background(Color c)
           
 void set_background(int pixel)
           
 void set_cap_style(int i)
           
 void set_clip_mask(Pixmap p)
           
 void set_clip_x_origin(int i)
           
 void set_clip_y_origin(int i)
           
 void set_dash_offset(int i)
           
 void set_dashes(int i)
           
 void set_fill_rule(int i)
           
 void set_fill_style(int i)
           
 void set_font(Font f)
           
 void set_foreground(Color c)
           
 void set_foreground(int pixel)
           
 void set_function(int i)
           
 void set_graphics_exposures(boolean b)
           
 void set_join_style(int i)
           
 void set_line_style(int i)
           
 void set_line_width(int i)
           
 void set_plane_mask(int i)
           
 void set_stipple(Pixmap p)
           
 void set_subwindow_mode(int i)
           
 void set_tile_stipple_x_origin(int i)
           
 void set_tile_stipple_y_origin(int i)
           
 void set_tile(Pixmap p)
           
 
Methods inherited from class gnu.x11.ValueList
aggregate, clear, copy, count, set, set, write
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EMPTY

public static final GC.Values EMPTY

CLEAR

public static final int CLEAR
0.

See Also:
Constant Field Values

AND

public static final int AND
src AND dst.

See Also:
Constant Field Values

AND_REVERSE

public static final int AND_REVERSE
src AND NOT dst.

See Also:
Constant Field Values

COPY

public static final int COPY
src.

See Also:
Constant Field Values

AND_INVERTED

public static final int AND_INVERTED
NOT src AND dst.

See Also:
Constant Field Values

NOOP

public static final int NOOP
dst.

See Also:
Constant Field Values

XOR

public static final int XOR
src XOR dst.

See Also:
Constant Field Values

OR

public static final int OR
src OR dst.

See Also:
Constant Field Values

NOR

public static final int NOR
NOT src AND NOT dst.

See Also:
Constant Field Values

EQUIV

public static final int EQUIV
NOT src XOR dst.

See Also:
Constant Field Values

INVERT

public static final int INVERT
NOT dst.

See Also:
Constant Field Values

OR_REVERSE

public static final int OR_REVERSE
src OR NOT dst.

See Also:
Constant Field Values

COPY_INVERTED

public static final int COPY_INVERTED
NOT src.

See Also:
Constant Field Values

OR_INVERTED

public static final int OR_INVERTED
NOT src OR dst.

See Also:
Constant Field Values

NAND

public static final int NAND
NOT src OR NOT dst.

See Also:
Constant Field Values

SET

public static final int SET
1.

See Also:
Constant Field Values

SOLID

public static final int SOLID
See Also:
Constant Field Values

ON_OFF_DASH

public static final int ON_OFF_DASH
See Also:
Constant Field Values

DOUBLE_DASH

public static final int DOUBLE_DASH
See Also:
Constant Field Values

NOT_LAST

public static final int NOT_LAST
See Also:
Constant Field Values

BUTT

public static final int BUTT
See Also:
Constant Field Values

CAP_ROUND

public static final int CAP_ROUND
See Also:
Constant Field Values

PROJECTING

public static final int PROJECTING
See Also:
Constant Field Values

MITER

public static final int MITER
See Also:
Constant Field Values

JOIN_ROUND

public static final int JOIN_ROUND
See Also:
Constant Field Values

BEVEL

public static final int BEVEL
See Also:
Constant Field Values

TILED

public static final int TILED
See Also:
Constant Field Values

OPAQUE_STIPPLED

public static final int OPAQUE_STIPPLED
See Also:
Constant Field Values

STIPPLED

public static final int STIPPLED
See Also:
Constant Field Values

EVEN_ODD

public static final int EVEN_ODD
See Also:
Constant Field Values

WINDING

public static final int WINDING
See Also:
Constant Field Values

CLIP_BY_CHILDREN

public static final int CLIP_BY_CHILDREN
See Also:
Constant Field Values

INCLUDE_INTERIORS

public static final int INCLUDE_INTERIORS
See Also:
Constant Field Values

CHORD

public static final int CHORD
See Also:
Constant Field Values

PIE_SLICE

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

GC.Values

public GC.Values()
Method Detail

set_function

public void set_function(int i)
Parameters:
i - valid: CLEAR, AND, AND_REVERSE, COPY (default), AND_INVERTED, NOOP, XOR, OR, NOR, EQUIV, INVERT, OR_REVERSE, COPY_INVERTED, OR_INVERTED, NAND, SET

set_plane_mask

public void set_plane_mask(int i)
Parameters:
i - default: all ones

set_foreground

public void set_foreground(Color c)
See Also:
set_foreground(int)

set_foreground

public void set_foreground(int pixel)
Parameters:
i - default: 0

set_background

public void set_background(Color c)
See Also:
set_background(int)

set_background

public void set_background(int pixel)
Parameters:
i - default: 1

set_line_width

public void set_line_width(int i)
Parameters:
i - default: 0

set_line_style

public void set_line_style(int i)
Parameters:
i - valid: SOLID (default), ON_OFF_DASH, DOUBLE_DASH

set_cap_style

public void set_cap_style(int i)
Parameters:
i - valid: NOT_LAST (default), BUTT, CAP_ROUND, PROJECTING

set_join_style

public void set_join_style(int i)
Parameters:
i - valid: MITER (default), JOIN_ROUND, BEVEL

set_fill_style

public void set_fill_style(int i)
Parameters:
i - valid: SOLID (default), TILED, OPAQUE_STIPPLED, STIPPLED

set_fill_rule

public void set_fill_rule(int i)
Parameters:
i - valid: EVEN_ODD (default), WINDING

set_tile

public void set_tile(Pixmap p)
Parameters:
p - default: pixmap of unspecified size filled with foreground pixel

set_stipple

public void set_stipple(Pixmap p)
Parameters:
p - default: pixmap of unspecified size filled with ones

set_tile_stipple_x_origin

public void set_tile_stipple_x_origin(int i)
Parameters:
i - default: 0

set_tile_stipple_y_origin

public void set_tile_stipple_y_origin(int i)
Parameters:
i - default: 0

set_font

public void set_font(Font f)
Parameters:
i - default: server dependent font

set_subwindow_mode

public void set_subwindow_mode(int i)
Parameters:
i - valid: CLIP_BY_CHILDREN (default), INCLUDE_INTERIORS

set_graphics_exposures

public void set_graphics_exposures(boolean b)
Parameters:
b - default: true

set_clip_x_origin

public void set_clip_x_origin(int i)
Parameters:
i - default: 0

set_clip_y_origin

public void set_clip_y_origin(int i)
Parameters:
i - default: 0

set_clip_mask

public void set_clip_mask(Pixmap p)
Parameters:
p - possible: Pixmap.NONE (default)

set_dash_offset

public void set_dash_offset(int i)
Parameters:
i - default: 0

set_dashes

public void set_dashes(int i)
Parameters:
i - default: 4 (that is, the list [4, 4])

set_arc_mode

public void set_arc_mode(int i)
Parameters:
i - valid: CHORD (default), PIE_SLICE

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object