org.jagatoo.input.devices.components
Class MouseWheel.WheelUpDownComponent

java.lang.Object
  extended by org.jagatoo.input.devices.components.DeviceComponent
      extended by org.jagatoo.input.devices.components.MouseWheel.WheelUpDownComponent
Enclosing class:
MouseWheel

public class MouseWheel.WheelUpDownComponent
extends DeviceComponent

To allow for using the MouseWheel's up/down state-changes like Key/Button events we need this simple DeviceComponent.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.jagatoo.input.devices.components.DeviceComponent
DeviceComponent.Type
 
Field Summary
 
Fields inherited from class org.jagatoo.input.devices.components.DeviceComponent
nextID
 
Constructor Summary
protected MouseWheel.WheelUpDownComponent(DeviceComponent.Type type, java.lang.String name, MouseWheel wheel, int intValue)
           
 
Method Summary
 int getIntValue()
           
 MouseWheel getWheel()
           
 
Methods inherited from class org.jagatoo.input.devices.components.DeviceComponent
bindAction, bindAction, getDeviceComponentID, getLocalizedName, getName, getType, isAnalog, isDigital, notifyBoundActions, unbindAction, unbindAction
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseWheel.WheelUpDownComponent

protected MouseWheel.WheelUpDownComponent(DeviceComponent.Type type,
                                          java.lang.String name,
                                          MouseWheel wheel,
                                          int intValue)
Method Detail

getWheel

public final MouseWheel getWheel()
Returns:
the MouseWheel, this component belongs to.

getIntValue

public final int getIntValue()
Returns:
the value, this component forwards to input-events and -actions.