|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjcontrol.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 exist| Method Detail |
|---|
public boolean isPressed()
isPressed in interface IPointingDevicepublic int getX()
getX in interface IPointingDevicepublic 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 IPointingDevicepublic int getRawX()
getRawX in interface IPointingDevicepublic int getRawY()
getRawY in interface IPointingDeviceprotected void finalize()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||