|
Eclipse Platform Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.swt.widgets.TouchSource
public final class TouchSource
Instances of this class represent a source of touch input. It is used to identify which input source
generated a Touch
object. It also provides information about the input source, which is important
when deciding how to interpret the information in the Touch
object.
Instances of this class can be marked as direct or indirect:
Touch
,
Sample code and further informationMethod Summary | |
---|---|
Rectangle |
getBounds()
Returns the bounding rectangle of the device. |
boolean |
isDirect()
Returns the type of touch input this source generates; true for direct, false for indirect. |
String |
toString()
Returns a string containing a concise, human-readable description of the receiver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public boolean isDirect()
public Rectangle getBounds()
Note that the x and y values may not necessarily be zero if the TouchSource is a direct source.
public String toString()
toString
in class Object
|
Eclipse Platform Release 3.7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) Eclipse contributors and others 2000, 2011. All rights reserved.