|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xith3d.ui.hud.utils.Cursor
public class Cursor
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 instance using the given texture resource name and default zero-point coordinates. |
|
Cursor(java.lang.String texture,
int zeroX,
int zeroY)
Creates a new Cursor instance using the given texture resource name and zero-point coordinates. |
|
Cursor(java.lang.String texture,
org.openmali.vecmath2.Tuple2i zeroPoint)
Creates a new Cursor instance using the given texture resource name and zero-point coordinates. |
|
Cursor(Texture2D texture)
Creates a new Cursor instance using the given texture and default zero-point coordinates. |
|
Cursor(Texture2D texture,
int zeroX,
int zeroY)
Creates a new Cursor instance using the given texture and zero-point coordinates. |
|
Cursor(Texture2D texture,
org.openmali.vecmath2.Tuple2i zeroPoint)
Creates a new Cursor instance using the given texture and zero-point coordinates. |
|
| Method Summary | |
|---|---|
Texture2D |
getTexture()
Returns this cursor's texture. |
org.openmali.vecmath2.Point2i |
getZeroPoint()
Returns this cursor's zero-point cursor-local pixel coordinates. |
int |
getZeroPointX()
Returns the x-coordinate of this cursor's zero-point cursor-local pixel coordinates. |
int |
getZeroPointY()
Returns the y-coordinate of this cursor's zero-point cursor-local pixel coordinates. |
void |
setTexture(java.lang.String texture)
Sets this cursor's texture. |
void |
setTexture(Texture2D texture)
Sets this cursor's texture. |
void |
setZeroPoint(int zeroPointX,
int zeroPointY)
Sets this cursor's zero-point cursor-local pixel coordinates. |
void |
setZeroPoint(org.openmali.vecmath2.Tuple2i zeroPoint)
Sets this cursor's zero-point cursor-local pixel coordinates. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cursor(Texture2D texture,
int zeroX,
int zeroY)
texture - org.xith3d.scenegraph.Texture2D - the texture to usezeroX - int - the x-coordinate of this cursor's zero-pointzeroY - int - the y-coordinate of this cursor's zero-point
public Cursor(Texture2D texture,
org.openmali.vecmath2.Tuple2i zeroPoint)
texture - org.xith3d.scenegraph.Texture2D - the texture to usezeroPoint - org.openmali.vecmath2.Tuple2i - the zero-point coordinates to usepublic Cursor(Texture2D texture)
texture - org.xith3d.scenegraph.Texture2D - the texture to use
public Cursor(java.lang.String texture,
int zeroX,
int zeroY)
texture - java.lang.String - the texture to usezeroX - int - the x-coordinate of this cursor's zero-pointzeroY - int - the y-coordinate of this cursor's zero-point
public Cursor(java.lang.String texture,
org.openmali.vecmath2.Tuple2i zeroPoint)
texture - java.lang.String - the texture to usezeroPoint - org.openmali.vecmath2.Tuple2i - the zero-point coordinates to usepublic Cursor(java.lang.String texture)
texture - java.lang.String - the texture to use| Method Detail |
|---|
public final void setTexture(Texture2D texture)
texture - org.xith3d.scenegraph.Texture2D - the texture to setpublic final void setTexture(java.lang.String texture)
texture - java.lang.String - the name of the texture to setpublic final Texture2D getTexture()
public final void setZeroPoint(int zeroPointX,
int zeroPointY)
zeroPointX - int - x-coordinate of the cursor's zero-pointzeroPointY - int - y-coordinate of the cursor's zero-pointpublic final void setZeroPoint(org.openmali.vecmath2.Tuple2i zeroPoint)
zeroPoint - org.openmali.vecmath2.Tuple2i - the coordinates to setpublic final org.openmali.vecmath2.Point2i getZeroPoint()
public final int getZeroPointX()
public final int getZeroPointY()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||