|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.interaction.Interaction
org.malai.interaction.library.MultiClick
public class MultiClick
This interaction allows to performed several clicks using button 1. If a click
occurs with another button, the interaction ends. THe interaction is aborted is key 'escape'
is pressed.
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.
05/19/2010
Field Summary | |
---|---|
protected java.awt.Point |
currentPosition
The current position of the pointing device. |
protected int |
minPoints
The minimum number of points that the interaction must gather. |
protected java.util.List<java.awt.Point> |
points
The list of pressed position. |
Fields inherited from class org.malai.interaction.Interaction |
---|
activated, currentState, currentTimeout, handlers, initState, lastHIDUsed, states, stillProcessingEvents |
Constructor Summary | |
---|---|
MultiClick()
Creates the interaction. |
Method Summary | |
---|---|
java.awt.Point |
getCurrentPosition()
|
int |
getMinPoints()
|
java.util.List<java.awt.Point> |
getPoints()
|
protected void |
initStateMachine()
Initialises the interaction: creates the states and the transitions. |
boolean |
isLastPointFinalPoint()
|
void |
reinit()
Reinits the state machine. |
void |
setMinPoints(int minPoints)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.util.List<java.awt.Point> points
protected java.awt.Point currentPosition
protected int minPoints
Constructor Detail |
---|
public MultiClick()
Method Detail |
---|
public void reinit()
IStateMachine
reinit
in interface IStateMachine
reinit
in class Interaction
public boolean isLastPointFinalPoint()
protected void initStateMachine()
Interaction
initStateMachine
in class Interaction
public java.util.List<java.awt.Point> getPoints()
public java.awt.Point getCurrentPosition()
public int getMinPoints()
public void setMinPoints(int minPoints)
minPoints
- The minimum number of points that the interaction must gather. Must be greater than 0.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |