|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcontrol.io.Touch
public class Touch
Implements the TouchScreen of JControl-Devices
Constructor Summary | |
---|---|
Touch()
creates a new Touch-Object |
Method Summary | |
---|---|
void |
calibrate(int x0,
int y0,
int x1,
int y1,
int x2,
int y2,
int x3,
int y3)
used to calibrate the touchscreen by the 4 corner-points of touch
|
protected void |
finalize()
native finalize method |
int |
getRawX()
used to calibrate the touchscreen |
int |
getRawY()
used to calibrate the touchscreen |
int |
getX()
returns the last X-Coordinates of TouchEvent |
int |
getY()
returns the last Y-Coordinates of TouchEvent |
boolean |
isPressed()
returns true if right now touched (native implemenation) |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, notifyAll, toString, wait |
Constructor Detail |
---|
public Touch() throws IOException
IOException
- if not Touch existMethod Detail |
---|
public boolean isPressed()
isPressed
in interface IPointingDevice
public int getX()
getX
in interface IPointingDevice
public int getY()
getY
in interface IPointingDevice
public void calibrate(int x0, int y0, int x1, int y1, int x2, int y2, int x3, int y3)
(x0,y0) (x1,y1)
+------------------------+
| |
| |
| |
| |
| |
+------------------------+
(x3,y3) (x2,y2)
calibrate
in interface IPointingDevice
public int getRawX()
getRawX
in interface IPointingDevice
public int getRawY()
getRawY
in interface IPointingDevice
protected void finalize()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |