org.xith3d.ui.hud.utils
Class CursorSet

java.lang.Object
  extended by org.xith3d.ui.hud.utils.CursorSet

public class CursorSet
extends java.lang.Object

A CursorSet holds references to Cursors for all different Cursor.Types. They can be null, which means, that the default system cursor is used.


Constructor Summary
CursorSet()
           
CursorSet(CursorSet template)
           
 
Method Summary
 CursorSet clone()
          
 void convertMeasurementToHUD(HUD hud)
           
 Cursor get(Cursor.Type cursorType)
           
 Cursor getCrosshair()
           
 Cursor getHelpCursor()
           
 HUDUnitsMeasurement getMeasurement()
           
 Cursor getPointer1()
           
 Cursor getPointer2()
           
 Cursor getTextCursor()
           
 Cursor getWaitCursor()
           
 void set(Cursor.Type type, Cursor cursor)
          Sets the Cursor for the given cursor.
 void set(CursorSet template)
           
 void setCrosshair(Cursor cursor)
          Sets the Cursor for thTexturee CROSSHAIR cursor.
 void setHelpCursor(Cursor cursor)
          Sets the Cursor for the HELP cursor.
 void setMeasurement(HUDUnitsMeasurement measurement)
           
 void setPointer1(Cursor cursor)
          Sets the Cursor for the (default) POINTER1 cursor.
 void setPointer2(Cursor cursor)
          Sets the Cursor for the POINTER2 cursor.
 void setTextCursor(Cursor cursor)
          Sets the Cursor for the TEXT cursor.
 void setWaitCursor(Cursor cursor)
          Sets the Cursor for the WAIT cursor.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CursorSet

public CursorSet(CursorSet template)

CursorSet

public CursorSet()
Method Detail

setMeasurement

public final void setMeasurement(HUDUnitsMeasurement measurement)

getMeasurement

public HUDUnitsMeasurement getMeasurement()

convertMeasurementToHUD

public final void convertMeasurementToHUD(HUD hud)

set

public final void set(Cursor.Type type,
                      Cursor cursor)
Sets the Cursor for the given cursor.

Parameters:
type -
cursor -

get

public final Cursor get(Cursor.Type cursorType)
Parameters:
cursorType -
Returns:
the Cursor for the given cursor.

setPointer1

public final void setPointer1(Cursor cursor)
Sets the Cursor for the (default) POINTER1 cursor.

Parameters:
cursor -

getPointer1

public final Cursor getPointer1()
Returns:
the Cursor for the (default) POINTER1 cursor.

setPointer2

public final void setPointer2(Cursor cursor)
Sets the Cursor for the POINTER2 cursor.

Parameters:
cursor -

getPointer2

public final Cursor getPointer2()
Returns:
the Cursor for the POINTER2 cursor.

setCrosshair

public final void setCrosshair(Cursor cursor)
Sets the Cursor for thTexturee CROSSHAIR cursor.

Parameters:
cursor -

getCrosshair

public final Cursor getCrosshair()
Returns:
the Cursor for the CROSSHAIR cursor.

setTextCursor

public final void setTextCursor(Cursor cursor)
Sets the Cursor for the TEXT cursor.

Parameters:
cursor -

getTextCursor

public final Cursor getTextCursor()
Returns:
the Cursor for the TEXT cursor.

setWaitCursor

public final void setWaitCursor(Cursor cursor)
Sets the Cursor for the WAIT cursor.

Parameters:
cursor -

getWaitCursor

public final Cursor getWaitCursor()
Returns:
the Cursor for the WAIT cursor.

setHelpCursor

public final void setHelpCursor(Cursor cursor)
Sets the Cursor for the HELP cursor.

Parameters:
cursor -

getHelpCursor

public final Cursor getHelpCursor()
Returns:
the Cursor for the HELP cursor.

set

public void set(CursorSet template)

clone

public final CursorSet clone()

Overrides:
clone in class java.lang.Object