|
||||||||||
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.Scrolling
public class Scrolling
Defines an interaction based on mouse scrolling.
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.
10/28/2010
Nested Class Summary | |
---|---|
(package private) class |
Scrolling.ScrollingScrollTransition
This scroll transition modifies the scrolling interaction. |
Field Summary | |
---|---|
protected int |
increment
The total increment of the scrolling. |
protected double |
px
The X-coordinate of the scroll position. |
protected double |
py
The Y-coordinate of the scroll position. |
protected Pickable |
scrollTarget
The object on which the scroll is performed. |
Fields inherited from class org.malai.interaction.Interaction |
---|
activated, currentState, currentTimeout, handlers, initState, lastHIDUsed, states, stillProcessingEvents |
Constructor Summary | |
---|---|
Scrolling()
Creates the interaction. |
Method Summary | |
---|---|
int |
getIncrement()
|
double |
getPx()
|
double |
getPy()
|
Pickable |
getScrollTarget()
|
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 Pickable scrollTarget
protected double px
protected double py
protected int increment
Constructor Detail |
---|
public Scrolling()
Method Detail |
---|
public void reinit()
IStateMachine
reinit
in interface IStateMachine
reinit
in class Interaction
protected void initStateMachine()
Interaction
initStateMachine
in class Interaction
public Pickable getScrollTarget()
public double getPx()
public double getPy()
public int getIncrement()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |