org.xith3d.ui.hud.utils
Class Cursor

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

public class Cursor
extends java.lang.Object

The Cursor class encapsulates a Texture and zero-point-coordinates for a HUD-Cursor.


Nested Class Summary
static class Cursor.Type
           
 
Constructor Summary
Cursor(java.lang.String texture)
          Creates a new Cursor.
Cursor(java.lang.String texture, float zeroX, float zeroY)
          Creates a new Cursor.
Cursor(java.lang.String texture, org.openmali.vecmath2.Tuple2f zeroPoint)
          Creates a new Cursor.
Cursor(Texture texture)
          Creates a new Cursor.
Cursor(Texture texture, float zeroX, float zeroY)
          Creates a new Cursor.
Cursor(Texture texture, org.openmali.vecmath2.Tuple2f zeroPoint)
          Creates a new Cursor.
 
Method Summary
 Texture getTexture()
           
 org.openmali.vecmath2.Tuple2f getZeroPoint()
           
 float getZeroPointX()
           
 float getZeroPointY()
           
 void setTexture(java.lang.String texture)
          Sets this Cursor's Texture.
 void setTexture(Texture texture)
          Sets this Cursor's Texture.
 void setZeroPoint(float zeroPointX, float zeroPointY)
          Sets this Cursor's zero-point cursor-local HUD coordinates.
 void setZeroPoint(org.openmali.vecmath2.Tuple2f zeroPoint)
          Sets this Cursor's zero-point cursor-local HUD coordinates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cursor

public Cursor(Texture texture,
              float zeroX,
              float zeroY)
Creates a new Cursor.

Parameters:
texture -
zeroX -
zeroY -

Cursor

public Cursor(Texture texture,
              org.openmali.vecmath2.Tuple2f zeroPoint)
Creates a new Cursor.

Parameters:
texture -
zeroPoint -

Cursor

public Cursor(Texture texture)
Creates a new Cursor.

Parameters:
texture -

Cursor

public Cursor(java.lang.String texture,
              float zeroX,
              float zeroY)
Creates a new Cursor.

Parameters:
texture -
zeroX -
zeroY -

Cursor

public Cursor(java.lang.String texture,
              org.openmali.vecmath2.Tuple2f zeroPoint)
Creates a new Cursor.

Parameters:
texture -
zeroPoint -

Cursor

public Cursor(java.lang.String texture)
Creates a new Cursor.

Parameters:
texture -
Method Detail

setTexture

public final void setTexture(Texture texture)
Sets this Cursor's Texture.

Parameters:
texture -

setTexture

public final void setTexture(java.lang.String texture)
Sets this Cursor's Texture.

Parameters:
texture -

getTexture

public final Texture getTexture()
Returns:
this Cursor's Texture.

setZeroPoint

public final void setZeroPoint(float zeroPointX,
                               float zeroPointY)
Sets this Cursor's zero-point cursor-local HUD coordinates.

Parameters:
zeroPointX -
zeroPointY -

setZeroPoint

public final void setZeroPoint(org.openmali.vecmath2.Tuple2f zeroPoint)
Sets this Cursor's zero-point cursor-local HUD coordinates.

Parameters:
zeroPoint -

getZeroPoint

public final org.openmali.vecmath2.Tuple2f getZeroPoint()
Returns:
this Cursor's zero-point cursor-local HUD coordinates.

getZeroPointX

public final float getZeroPointX()
Returns:
this Cursor's zero-point x-coordinate cursor-local HUD coordinates.

getZeroPointY

public final float getZeroPointY()
Returns:
this Cursor's zero-point y-coordinate cursor-local HUD coordinates.