org.jagatoo.input.devices.components
Class MouseAxis

java.lang.Object
  extended by org.jagatoo.input.devices.components.DeviceComponent
      extended by org.jagatoo.input.devices.components.AnalogDeviceComponent
          extended by org.jagatoo.input.devices.components.MouseAxis

public final class MouseAxis
extends AnalogDeviceComponent

Represents one axis of a mouse device.


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
MouseAxis(Mouse mouse, char id, java.lang.String name)
          Create a new MouseAxis.
 
Method Summary
 char getID()
           
 Mouse getMouse()
           
 java.lang.String toString()
          
 
Methods inherited from class org.jagatoo.input.devices.components.AnalogDeviceComponent
addValue, addValue, getFloatValue, getIntValue, getScale, setScale, setValue, setValue, setValue
 
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, wait, wait, wait
 

Constructor Detail

MouseAxis

public MouseAxis(Mouse mouse,
                 char id,
                 java.lang.String name)
Create a new MouseAxis.

Parameters:
mouse - the Mouse, this axis belongs to
id - the simple char-id, that identifies this axis
name - the Axis' name
Method Detail

getMouse

public final Mouse getMouse()
Returns:
the Mouse, this axis belongs to.

getID

public final char getID()
Returns:
a simple char-id, that identifies this axis.

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object