gnu.x11
Class Cursor

java.lang.Object
  extended by gnu.x11.Resource
      extended by gnu.x11.Cursor

public class Cursor
extends Resource

X cursor.


Field Summary
static int ARROW
           
static int BASED_ARROW_DOWN
           
static int BASED_ARROW_UP
           
static int BOAT
           
static int BOGOSITY
           
static int BOTTOM_LEFT_CORNER
           
static int BOTTOM_RIGHT_CORNER
           
static int BOTTOM_SIDE
           
static int BOTTOM_TEE
           
static int BOX_SPIRAL
           
static int CENTER_PTR
           
static int CIRCLE
           
static int CLOCK
           
static int COFFEE_MUG
           
static int CROSS
           
static int CROSS_REVERSE
           
static int CROSSHAIR
           
static Cursor CURRENT
           
static int DIAMOND_CROSS
           
static int DOT
           
static int DOTBOX
           
static int DOUBLE_ARROW
           
static int DRAFT_LARGE
           
static int DRAFT_SMALL
           
static int DRAPED_BOX
           
static int EXCHANGE
           
static int FLEUR
           
static Font FONT
           
static int GOBBLER
           
static int GUMBY
           
static int HAND1
           
static int HAND2
           
static int HEART
           
static int ICON
           
static int IRON_CROSS
           
static int LEFT_PTR
           
static int LEFT_SIDE
           
static int LEFT_TEE
           
static int LEFTBUTTON
           
static int LL_ANGLE
           
static int LR_ANGLE
           
static int MAN
           
static int MIDDLEBUTTON
           
static int MOUSE
           
static Cursor NONE
          Predefined cursor.
static int PENCIL
           
static int PIRATE
           
static int PLUS
           
static int QUESTION_ARROW
           
static int RIGHT_PTR
           
static int RIGHT_SIDE
           
static int RIGHT_TEE
           
static int RIGHTBUTTON
           
static int RTL_LOGO
           
static int SAILBOAT
           
static int SB_DOWN_ARROW
           
static int SB_H_DOUBLE_ARROW
           
static int SB_LEFT_ARROW
           
static int SB_RIGHT_ARROW
           
static int SB_UP_ARROW
           
static int SB_V_DOUBLE_ARROW
           
static int SHUTTLE
           
static int SIZING
           
static int SPIDER
           
static int SPRAYCAN
           
static int STAR
           
static int TARGET
           
static int TCROSS
           
static int TOP_LEFT_ARROW
           
static int TOP_LEFT_CORNER
           
static int TOP_RIGHT_CORNER
           
static int TOP_SIDE
           
static int TOP_TEE
           
static int TREK
           
static int UL_ANGLE
           
static int UMBRELLA
           
static int UR_ANGLE
           
static int WATCH
           
static int X_CURSOR
           
static int XTERM
           
 
Fields inherited from class gnu.x11.Resource
display, id
 
Constructor Summary
Cursor(Display display, int shape)
           
Cursor(Font src, Font mask, int source_char, int mask_char, int fg_r, int fg_g, int fg_b, int bg_r, int bg_g, int bg_b)
           
Cursor(int id)
          Predefined.
Cursor(Pixmap src, Pixmap mask, int source_char, int mask_char, int fg_r, int fg_g, int fg_b, int bg_r, int bg_g, int bg_b, int x, int y)
           
 
Method Summary
 void create(Font src, Font mask, int source_char, int mask_char, int fg_r, int fg_g, int fg_b, int bg_r, int bg_g, int bg_b)
           
 void free()
           
 void recolor(RGB foreground, RGB background)
           
 
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

NONE

public static final Cursor NONE
Predefined cursor.

See Also:
Window.NONE

CURRENT

public static final Cursor CURRENT

X_CURSOR

public static final int X_CURSOR
See Also:
Constant Field Values

ARROW

public static final int ARROW
See Also:
Constant Field Values

BASED_ARROW_DOWN

public static final int BASED_ARROW_DOWN
See Also:
Constant Field Values

BASED_ARROW_UP

public static final int BASED_ARROW_UP
See Also:
Constant Field Values

BOAT

public static final int BOAT
See Also:
Constant Field Values

BOGOSITY

public static final int BOGOSITY
See Also:
Constant Field Values

BOTTOM_LEFT_CORNER

public static final int BOTTOM_LEFT_CORNER
See Also:
Constant Field Values

BOTTOM_RIGHT_CORNER

public static final int BOTTOM_RIGHT_CORNER
See Also:
Constant Field Values

BOTTOM_SIDE

public static final int BOTTOM_SIDE
See Also:
Constant Field Values

BOTTOM_TEE

public static final int BOTTOM_TEE
See Also:
Constant Field Values

BOX_SPIRAL

public static final int BOX_SPIRAL
See Also:
Constant Field Values

CENTER_PTR

public static final int CENTER_PTR
See Also:
Constant Field Values

CIRCLE

public static final int CIRCLE
See Also:
Constant Field Values

CLOCK

public static final int CLOCK
See Also:
Constant Field Values

COFFEE_MUG

public static final int COFFEE_MUG
See Also:
Constant Field Values

CROSS

public static final int CROSS
See Also:
Constant Field Values

CROSS_REVERSE

public static final int CROSS_REVERSE
See Also:
Constant Field Values

CROSSHAIR

public static final int CROSSHAIR
See Also:
Constant Field Values

DIAMOND_CROSS

public static final int DIAMOND_CROSS
See Also:
Constant Field Values

DOT

public static final int DOT
See Also:
Constant Field Values

DOTBOX

public static final int DOTBOX
See Also:
Constant Field Values

DOUBLE_ARROW

public static final int DOUBLE_ARROW
See Also:
Constant Field Values

DRAFT_LARGE

public static final int DRAFT_LARGE
See Also:
Constant Field Values

DRAFT_SMALL

public static final int DRAFT_SMALL
See Also:
Constant Field Values

DRAPED_BOX

public static final int DRAPED_BOX
See Also:
Constant Field Values

EXCHANGE

public static final int EXCHANGE
See Also:
Constant Field Values

FLEUR

public static final int FLEUR
See Also:
Constant Field Values

GOBBLER

public static final int GOBBLER
See Also:
Constant Field Values

GUMBY

public static final int GUMBY
See Also:
Constant Field Values

HAND1

public static final int HAND1
See Also:
Constant Field Values

HAND2

public static final int HAND2
See Also:
Constant Field Values

HEART

public static final int HEART
See Also:
Constant Field Values

ICON

public static final int ICON
See Also:
Constant Field Values

IRON_CROSS

public static final int IRON_CROSS
See Also:
Constant Field Values

LEFT_PTR

public static final int LEFT_PTR
See Also:
Constant Field Values

LEFT_SIDE

public static final int LEFT_SIDE
See Also:
Constant Field Values

LEFT_TEE

public static final int LEFT_TEE
See Also:
Constant Field Values

LEFTBUTTON

public static final int LEFTBUTTON
See Also:
Constant Field Values

LL_ANGLE

public static final int LL_ANGLE
See Also:
Constant Field Values

LR_ANGLE

public static final int LR_ANGLE
See Also:
Constant Field Values

MAN

public static final int MAN
See Also:
Constant Field Values

MIDDLEBUTTON

public static final int MIDDLEBUTTON
See Also:
Constant Field Values

MOUSE

public static final int MOUSE
See Also:
Constant Field Values

PENCIL

public static final int PENCIL
See Also:
Constant Field Values

PIRATE

public static final int PIRATE
See Also:
Constant Field Values

PLUS

public static final int PLUS
See Also:
Constant Field Values

QUESTION_ARROW

public static final int QUESTION_ARROW
See Also:
Constant Field Values

RIGHT_PTR

public static final int RIGHT_PTR
See Also:
Constant Field Values

RIGHT_SIDE

public static final int RIGHT_SIDE
See Also:
Constant Field Values

RIGHT_TEE

public static final int RIGHT_TEE
See Also:
Constant Field Values

RIGHTBUTTON

public static final int RIGHTBUTTON
See Also:
Constant Field Values

RTL_LOGO

public static final int RTL_LOGO
See Also:
Constant Field Values

SAILBOAT

public static final int SAILBOAT
See Also:
Constant Field Values

SB_DOWN_ARROW

public static final int SB_DOWN_ARROW
See Also:
Constant Field Values

SB_H_DOUBLE_ARROW

public static final int SB_H_DOUBLE_ARROW
See Also:
Constant Field Values

SB_LEFT_ARROW

public static final int SB_LEFT_ARROW
See Also:
Constant Field Values

SB_RIGHT_ARROW

public static final int SB_RIGHT_ARROW
See Also:
Constant Field Values

SB_UP_ARROW

public static final int SB_UP_ARROW
See Also:
Constant Field Values

SB_V_DOUBLE_ARROW

public static final int SB_V_DOUBLE_ARROW
See Also:
Constant Field Values

SHUTTLE

public static final int SHUTTLE
See Also:
Constant Field Values

SIZING

public static final int SIZING
See Also:
Constant Field Values

SPIDER

public static final int SPIDER
See Also:
Constant Field Values

SPRAYCAN

public static final int SPRAYCAN
See Also:
Constant Field Values

STAR

public static final int STAR
See Also:
Constant Field Values

TARGET

public static final int TARGET
See Also:
Constant Field Values

TCROSS

public static final int TCROSS
See Also:
Constant Field Values

TOP_LEFT_ARROW

public static final int TOP_LEFT_ARROW
See Also:
Constant Field Values

TOP_LEFT_CORNER

public static final int TOP_LEFT_CORNER
See Also:
Constant Field Values

TOP_RIGHT_CORNER

public static final int TOP_RIGHT_CORNER
See Also:
Constant Field Values

TOP_SIDE

public static final int TOP_SIDE
See Also:
Constant Field Values

TOP_TEE

public static final int TOP_TEE
See Also:
Constant Field Values

TREK

public static final int TREK
See Also:
Constant Field Values

UL_ANGLE

public static final int UL_ANGLE
See Also:
Constant Field Values

UMBRELLA

public static final int UMBRELLA
See Also:
Constant Field Values

UR_ANGLE

public static final int UR_ANGLE
See Also:
Constant Field Values

WATCH

public static final int WATCH
See Also:
Constant Field Values

XTERM

public static final int XTERM
See Also:
Constant Field Values

FONT

public static Font FONT
Constructor Detail

Cursor

public Cursor(int id)
Predefined.


Cursor

public Cursor(Display display,
              int shape)
See Also:
XCreateFontCursor

Cursor

public Cursor(Font src,
              Font mask,
              int source_char,
              int mask_char,
              int fg_r,
              int fg_g,
              int fg_b,
              int bg_r,
              int bg_g,
              int bg_b)
See Also:
XCreateGlyphCursor

Cursor

public Cursor(Pixmap src,
              Pixmap mask,
              int source_char,
              int mask_char,
              int fg_r,
              int fg_g,
              int fg_b,
              int bg_r,
              int bg_g,
              int bg_b,
              int x,
              int y)
Parameters:
mask - possible: Pixmap.NONE
See Also:
XCreatePixmapCursor
Method Detail

create

public void create(Font src,
                   Font mask,
                   int source_char,
                   int mask_char,
                   int fg_r,
                   int fg_g,
                   int fg_b,
                   int bg_r,
                   int bg_g,
                   int bg_b)

free

public void free()
See Also:
XFreeCursor

recolor

public void recolor(RGB foreground,
                    RGB background)
See Also:
XRecolorCursor