Class Calibrate

  extended by ch.claudio.pen.calibrate.Calibrate
All Implemented Interfaces:
InputEventListener, Layer

public class Calibrate
extends java.lang.Object
implements InputEventListener, Layer

Claudio Nieder

Copyright (C) 2008 Claudio Nieder <>, CH-8610 Uster

This program 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; version 2 of the License.

This program is distributed in the hope that it will be useful, but 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.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

Constructor Summary
Calibrate(Screen s, InputEventHandler i, Scaler sc)
          Start calibration
Method Summary
 boolean handleEvent(Event e)
          Method to which each event is passed.
static void main(java.lang.String[] args)
          Print license.
 void paint()
          Repaint your part using the screens graphics object.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public Calibrate(Screen s,
                 InputEventHandler i,
                 Scaler sc)
Start calibration

s - screen
i - input handler
sc - scaler which should be adjusted with the calibration result
Method Detail


public boolean handleEvent(Event e)
Description copied from interface: InputEventListener
Method to which each event is passed.

Specified by:
handleEvent in interface InputEventListener
true normally, false to prevent further handlers from getting the event.
See Also:


public void paint()
Description copied from interface: Layer
Repaint your part using the screens graphics object.

Specified by:
paint in interface Layer
See Also:


public static void main(java.lang.String[] args)
Print license.

args - ignored