日期:2014-05-20 浏览次数:20694 次
javafx.scene.input.TouchEvent All Implemented Interfaces: java.io.Serializable, java.lang.Cloneable public final class TouchEvent extends InputEvent Touch event indicates a touch screen action. It contains detailed information about each particular touch point. Touch point represents a single touched finger and has its location, state (pressed/moved/released/stationary) and an ID unique in scope of a single gesture. For detailed reference see TouchPoint. For each multi-touch action a set of touch events is generated - for each touch point one. The event has type corresponds to its touch point's state. Each of the events also contain list of all the touch points. This design allows for handling complicated multi-touch actions from one place while keeping it possible to filter/consume each touch point separately. To recognize which events belong into a single set there is getEventSetId() method.