|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cursor
Used to represent a mouse cursor, desynchronized from the window mouse pointer. This way, it is possible to set a specific sensibility.
Mouse
Method Summary | |
---|---|
void |
fixBetween(int minX,
int minY,
int maxX,
int maxY)
Allow cursor to move only in the specified area. |
int |
getClick()
Return mouse click number. |
float |
getHorizontalSensibility()
Get horizontal sensibility. |
float |
getVerticalSensibility()
Get vertical sensibility. |
int |
getX()
Get horizontal location. |
int |
getY()
Get vertical location. |
void |
lockMouse(boolean lock)
Lock mouse state. |
void |
place(int x,
int y)
Set cursor location. |
void |
render(java.awt.Graphics2D g)
Render cursor on screen. |
void |
setSensibility(int sh,
int sv)
Set cursor sensibility (move speed). |
void |
update(Mouse mouse,
boolean async,
float extrp)
Update cursor position depending of mouse movement. |
Method Detail |
---|
void update(Mouse mouse, boolean async, float extrp)
mouse
- mouse reference.extrp
- extrapolation value.void render(java.awt.Graphics2D g)
g
- graphic output.void setSensibility(int sh, int sv)
sh
- horizontal speed.sv
- vertical speed.void fixBetween(int minX, int minY, int maxX, int maxY)
minX
- minimal x.minY
- minimal y.maxX
- maximal x.maxY
- maximal y.void place(int x, int y)
x
- horizontal location.y
- vertical location.void lockMouse(boolean lock)
lock
- true to lock mouse.int getClick()
int getX()
int getY()
float getHorizontalSensibility()
float getVerticalSensibility()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |