public final class TouchSource extends Object
Touch objects.
They also provide information about the input source, which is important for interpreting the
information in the Touch object.
Instances of this class can be marked as direct or indirect:
Touch,
Sample code and further information| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getBounds()
Returns the bounding rectangle of the device.
|
boolean |
isDirect()
Returns the type of touch input this source generates,
true for direct or false for indirect. |
String |
toString()
Returns a string containing a concise, human-readable
description of the receiver.
|
public boolean isDirect()
true for direct or false for indirect.true if the input source is direct, or false otherwisepublic Rectangle getBounds()
Note that the x and y values may not necessarily be 0 if the TouchSource is a direct source.
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.