|
||||||||||
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.DnD
public class DnD
A DnD interaction is a Drag-And-Drop: press-drag-release.
When key 'escape' is pressed, the interaction is aborted.
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
Nested Class Summary | |
---|---|
(package private) class |
DnD.Move4DnD
|
(package private) class |
DnD.Release4DnD
|
Field Summary | |
---|---|
protected int |
button
The button of the device used to performed the dnd (-1 if no button). |
protected IntermediaryState |
dragged
|
protected Pickable |
endObject
The object picked at the end of the dnd. |
protected java.awt.Point |
endPt
The ending point of the dnd. |
protected IntermediaryState |
pressed
|
protected TerminalState |
released
|
protected Pickable |
startObject
The object picked at the beginning of the dnd. |
protected java.awt.Point |
startPt
The starting point of the dnd. |
Fields inherited from class org.malai.interaction.Interaction |
---|
activated, currentState, currentTimeout, handlers, initState, lastHIDUsed, states, stillProcessingEvents |
Constructor Summary | |
---|---|
DnD()
Creates the interaction. |
Method Summary | |
---|---|
int |
getButton()
|
Pickable |
getEndObjet()
|
java.awt.Point |
getEndPt()
|
Pickable |
getStartObject()
|
java.awt.Point |
getStartPt()
|
protected void |
initStateMachine()
Initialises the interaction: creates the states and the transitions. |
void |
reinit()
Reinits the state machine. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.awt.Point startPt
protected java.awt.Point endPt
protected int button
protected Pickable startObject
protected Pickable endObject
protected IntermediaryState pressed
protected IntermediaryState dragged
protected TerminalState released
Constructor Detail |
---|
public DnD()
Method Detail |
---|
protected void initStateMachine()
Interaction
initStateMachine
in class Interaction
public void reinit()
IStateMachine
reinit
in interface IStateMachine
reinit
in class Interaction
public java.awt.Point getStartPt()
public java.awt.Point getEndPt()
public int getButton()
public Pickable getStartObject()
public Pickable getEndObjet()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |