ch.aplu.nxt
Class TouchAdapter

java.lang.Object
  extended by ch.aplu.nxt.TouchAdapter
All Implemented Interfaces:
TouchListener

public class TouchAdapter
extends java.lang.Object
implements TouchListener

Class with empty callback methods for the touch sensor.


Constructor Summary
TouchAdapter()
           
 
Method Summary
 void pressed(SensorPort port)
          Empty method called when the touch sensor is pressed.
 void released(SensorPort port)
          Empty method called when the touch sensor is released.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TouchAdapter

public TouchAdapter()
Method Detail

pressed

public void pressed(SensorPort port)
Empty method called when the touch sensor is pressed. Override it to process the event.

Specified by:
pressed in interface TouchListener
Parameters:
port - the port where the sensor is plugged in

released

public void released(SensorPort port)
Empty method called when the touch sensor is released. Override it to process the event.

Specified by:
released in interface TouchListener
Parameters:
port - the port where the sensor is plugged in