org.malai.interaction
Class MoveTransition

java.lang.Object
  extended by org.malai.interaction.Transition
      extended by org.malai.interaction.PointingDeviceTransition
          extended by org.malai.interaction.MoveTransition
All Implemented Interfaces:
ITransition
Direct Known Subclasses:
DnD.Move4DnD

public class MoveTransition
extends PointingDeviceTransition

This transition corresponds to a move of a button of a pointing device.

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.

06/01/2010

Since:
0.1
Author:
Arnaud BLOUIN

Field Summary
protected  boolean pressed
          Defines if a button is pressed while the pointing device is moving.
 
Fields inherited from class org.malai.interaction.PointingDeviceTransition
button, source, x, y
 
Fields inherited from class org.malai.interaction.Transition
hid, inputState, outputState
 
Constructor Summary
MoveTransition(SourceableState inputState, TargetableState outputState)
          Transition.Transition(SourceableState, TargetableState)
 
Method Summary
 boolean isPressed()
           
 void setPressed(boolean pressed)
          Defines if a button is pressed while the pointing device is moving.
 
Methods inherited from class org.malai.interaction.PointingDeviceTransition
getButton, getSource, getX, getY, setButton, setSource, setX, setY
 
Methods inherited from class org.malai.interaction.Transition
action, getHid, getInputState, getOutputState, isGuardRespected, setHid, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

pressed

protected boolean pressed
Defines if a button is pressed while the pointing device is moving.

Constructor Detail

MoveTransition

public MoveTransition(SourceableState inputState,
                      TargetableState outputState)
Transition.Transition(SourceableState, TargetableState)

Method Detail

isPressed

public boolean isPressed()
Returns:
Defines if a button is pressed while the pointing device is moving.
Since:
0.1

setPressed

public void setPressed(boolean pressed)
Defines if a button is pressed while the pointing device is moving.

Parameters:
pressed - True: a button is pressed while the pointing device is moving.
Since:
0.1