Top Description Fields Constructors Methods
org.eclipse.swt.events

public Class TouchEvent

extends TypedEvent
Class Inheritance
Imports
org.eclipse.swt.widgets.*

Instances of this class are sent in response to a touch-based input source being touched.
Since
3.7
See Also
TouchListener, Sample code and further information

Field Summary

Modifier and TypeField and Description
pack-priv static final long
public int
stateMask

The state of the keyboard modifier keys and mouse masks at the time the event was generated.

public Touch[]
touches

The set of touches representing the state of all contacts with touch input device at the time the event was generated.

public int
x

The widget-relative x coordinate of the pointer at the time the touch occurred.

public int
y

The widget-relative y coordinate of the pointer at the time the touch occurred.

Inherited from org.eclipse.swt.events.TypedEvent:
datadisplaytimewidget

Constructor Summary

AccessConstructor and Description
public
TouchEvent(Event
the untyped event containing the information
e
)

Constructs a new instance of this class based on the information in the given untyped event.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

a string representation of the event
toString
()

Overrides org.eclipse.swt.events.TypedEvent.toString.

Returns a string containing a concise, human-readable description of the receiver.
Inherited from org.eclipse.swt.events.TypedEvent:
getName

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides org.eclipse.swt.events.TypedEvent.serialVersionUID.

stateMaskback to summary
public int stateMask

The state of the keyboard modifier keys and mouse masks at the time the event was generated.

See Also
org.eclipse.swt.SWT#MODIFIER_MASK, org.eclipse.swt.SWT#BUTTON_MASK
touchesback to summary
public Touch[] touches

The set of touches representing the state of all contacts with touch input device at the time the event was generated.

See Also
org.eclipse.swt.widgets.Touch
xback to summary
public int x

The widget-relative x coordinate of the pointer at the time the touch occurred.

yback to summary
public int y

The widget-relative y coordinate of the pointer at the time the touch occurred.

Constructor Detail

TouchEventback to summary
public TouchEvent(Event e)

Constructs a new instance of this class based on the information in the given untyped event.

Parameters
e:Event

the untyped event containing the information

Method Detail

toStringback to summary
public String toString()

Overrides org.eclipse.swt.events.TypedEvent.toString.

Returns a string containing a concise, human-readable description of the receiver.

Returns:String

a string representation of the event

Annotations
@Override