org.malai.interaction.library
Class DoubleClick

java.lang.Object
  extended by org.malai.interaction.Interaction
      extended by org.malai.interaction.library.PointInteraction
          extended by org.malai.interaction.library.DoubleClick
All Implemented Interfaces:
EventHandler, IStateMachine

public class DoubleClick
extends PointInteraction

This interaction defines a double click. Between the two clicks the mouse must not moved. A delay of 1 second at max is permitted between the two clicks.
This file is part of Malai.
Copyright (c) 2009-2012 Arnaud BLOUIN

Malai is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Malai is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

08/18/2011

Since:
0.2
Author:
Arnaud BLOUIN

Nested Class Summary
(package private)  class DoubleClick.ReleaseTransition4DoubleClick
           
 
Nested classes/interfaces inherited from class org.malai.interaction.library.PointInteraction
PointInteraction.PointPressureTransition
 
Field Summary
 
Fields inherited from class org.malai.interaction.library.PointInteraction
button, point, target
 
Fields inherited from class org.malai.interaction.Interaction
activated, currentState, currentTimeout, handlers, initState, lastHIDUsed, states, stillProcessingEvents
 
Constructor Summary
DoubleClick()
          Creates the interaction.
 
Method Summary
protected  void initStateMachine()
          Initialises the interaction: creates the states and the transitions.
 
Methods inherited from class org.malai.interaction.library.PointInteraction
getButton, getPoint, getTarget, reinit
 
Methods inherited from class org.malai.interaction.Interaction
addEvent, addHandler, addState, checkTimeoutTransition, clearEventsStillInProcess, getHandlers, getLastHIDUsed, getPickableAt, isRunning, linkToEventable, notifyHandlersOnAborting, notifyHandlersOnStart, notifyHandlersOnStop, notifyHandlersOnUpdate, onAborting, onButtonPressed, onCheckBoxModified, onItemSelected, onKeyPressure, onKeyRelease, onMenuItemPressed, onMove, onPressure, onRelease, onScroll, onSpinnerChanged, onStarting, onTabChanged, onTerminating, onTextChanged, onTimeout, onUpdating, onWindowClosed, processEvents, removeKeyEvent, removePressEvent, setActivated, setLastHIDUsed, stopCurrentTimeout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DoubleClick

public DoubleClick()
Creates the interaction.

Since:
0.2
Method Detail

initStateMachine

protected void initStateMachine()
Description copied from class: Interaction
Initialises the interaction: creates the states and the transitions.

Specified by:
initStateMachine in class Interaction