|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.malai.interaction.Transition
org.malai.interaction.PointingDeviceTransition
public abstract class PointingDeviceTransition
This abstract transition defines a model for transitions based on pointing device events.
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
Field Summary | |
---|---|
protected int |
button
The button used. |
protected java.lang.Object |
source
The object picked at the position (x, y). |
protected int |
x
The X-coordinate of the pointing device. |
protected int |
y
The Y-coordinate of the pointing device. |
Fields inherited from class org.malai.interaction.Transition |
---|
hid, inputState, outputState |
Constructor Summary | |
---|---|
PointingDeviceTransition(SourceableState inputState,
TargetableState outputState)
Transition.Transition(SourceableState, TargetableState) |
Method Summary | |
---|---|
int |
getButton()
|
java.lang.Object |
getSource()
|
int |
getX()
|
int |
getY()
|
void |
setButton(int button)
Sets the button of the pointing device used by the event. |
void |
setSource(java.lang.Object source)
Sets the object picked at the position (x, y). |
void |
setX(int x)
Sets the X-coordinate of the pointing device. |
void |
setY(int y)
Sets the Y-coordinate of the pointing device. |
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 |
---|
protected int x
protected int y
protected int button
protected java.lang.Object source
Constructor Detail |
---|
public PointingDeviceTransition(SourceableState inputState, TargetableState outputState)
Transition.Transition(SourceableState, TargetableState)
Method Detail |
---|
public int getButton()
public java.lang.Object getSource()
public void setSource(java.lang.Object source)
source
- The object picked at the position (x, y).public void setButton(int button)
button
- The button used.public int getX()
public void setX(int x)
x
- The X-coordinate of the pointing device.public int getY()
public void setY(int y)
y
- The Y-coordinate of the pointing device.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |