t3.hrd.state
Class Cursor

java.lang.Object
  extended by t3.hrd.state.Cursor

public class Cursor
extends java.lang.Object

A Cursor represents a cursor on the display surface. Create new Cursors by calling the appropriate method on the a StateManager object.

Threading notes: this class is not thread-safe. You must use some kind of locking scheme if you use it in a multithreaded environment.

Author:
pjt40

Nested Class Summary
static class Cursor.CursorShapePolygons
          Experimental.
static class Cursor.CursorTrailPoint
          Data structure representing a point in time on the cursor's trail.
 
Field Summary
static int DISPLAYTYPE_INVISIBLE
           
static int DISPLAYTYPE_SHAPE
           
static int DISPLAYTYPE_TRAIL
           
static long TRAIL_PERIOD
           
 
Method Summary
 java.awt.Color getColor()
           
 int getCursorId()
           
 int getDisplayType()
           
 Cursor.CursorTrailPoint getMostRecentPosition()
           
 boolean isDestroyed()
           
 void oglDrawCursor(javax.media.opengl.GL gl, Projector p)
           
 void opCursorPos(double DESKx, double DESKy, boolean visible)
          Sets the cursor position and visibility.
 void opCursorShape(Cursor.CursorShapePolygons polygonsForShapeCursor)
           
 void opSetCursorOptions(java.awt.Color col, int displayType)
          Sets the cursor colour and display type.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRAIL_PERIOD

public static final long TRAIL_PERIOD
See Also:
Constant Field Values

DISPLAYTYPE_INVISIBLE

public static final int DISPLAYTYPE_INVISIBLE
See Also:
Constant Field Values

DISPLAYTYPE_TRAIL

public static final int DISPLAYTYPE_TRAIL
See Also:
Constant Field Values

DISPLAYTYPE_SHAPE

public static final int DISPLAYTYPE_SHAPE
See Also:
Constant Field Values
Method Detail

getCursorId

public int getCursorId()

getMostRecentPosition

public Cursor.CursorTrailPoint getMostRecentPosition()

getColor

public java.awt.Color getColor()

getDisplayType

public int getDisplayType()

isDestroyed

public boolean isDestroyed()

opCursorPos

public void opCursorPos(double DESKx,
                        double DESKy,
                        boolean visible)
Sets the cursor position and visibility.

Parameters:
DESKx -
DESKy -
visible -

opCursorShape

public void opCursorShape(Cursor.CursorShapePolygons polygonsForShapeCursor)

opSetCursorOptions

public void opSetCursorOptions(java.awt.Color col,
                               int displayType)
Sets the cursor colour and display type.

Parameters:
col -
displayType -

oglDrawCursor

public void oglDrawCursor(javax.media.opengl.GL gl,
                          Projector p)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object