net.jhid.test
Class TraceListener

java.lang.Object
  extended bynet.jhid.test.TraceListener
All Implemented Interfaces:
IAbsoluteAxisListener, IButtonListener, IDeviceListener, IRelativeAxisListener

public class TraceListener
extends java.lang.Object
implements IDeviceListener

A listsner that prints every message it receives.


Constructor Summary
TraceListener()
           
 
Method Summary
 void stateChanged(IButton aButton, boolean aPressed)
          Called when the button changes state.
 void valueChanged(IAbsoluteAxis aAxis, int aValue)
          Called when the value of the axis changes.
 void valueChanged(IRelativeAxis aAxis, int aDelta, int aValue)
          Called when the value of the axis changes.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TraceListener

public TraceListener()
Method Detail

valueChanged

public void valueChanged(IRelativeAxis aAxis,
                         int aDelta,
                         int aValue)
Description copied from interface: IRelativeAxisListener
Called when the value of the axis changes.

Specified by:
valueChanged in interface IRelativeAxisListener
Parameters:
aAxis - The axis that changed
aDelta - The differential value provided by the device
aValue - The new value of the axis, computed by the system.

valueChanged

public void valueChanged(IAbsoluteAxis aAxis,
                         int aValue)
Description copied from interface: IAbsoluteAxisListener
Called when the value of the axis changes.

Specified by:
valueChanged in interface IAbsoluteAxisListener
Parameters:
aAxis - The axis that changed
aValue - The new value of the axis.

stateChanged

public void stateChanged(IButton aButton,
                         boolean aPressed)
Description copied from interface: IButtonListener
Called when the button changes state.

Specified by:
stateChanged in interface IButtonListener
Parameters:
aButton - The button that changed state.
aPressed - The new state of the button.