josx.vision
Class ColorDetectionControl

java.lang.Object
  extended byjosx.vision.ColorDetectionControl
All Implemented Interfaces:
java.awt.event.ActionListener, javax.swing.event.ChangeListener, java.util.EventListener

public class ColorDetectionControl
extends Object
implements java.awt.event.ActionListener, javax.swing.event.ChangeListener

Title: Lejos Vision System Description: Color Detection Control


Constructor Summary
ColorDetectionControl(ColorEffect effect)
          Create the Motion Detection Control
 
Method Summary
 void actionPerformed(java.awt.event.ActionEvent e)
          Toggle debug
 java.awt.Component getControlComponent()
          Return the visual component
 void stateChanged(javax.swing.event.ChangeEvent e)
          Set the threshold value
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait
 

Constructor Detail

ColorDetectionControl

public ColorDetectionControl(ColorEffect effect)
Create the Motion Detection Control

Method Detail

getControlComponent

public java.awt.Component getControlComponent()
Return the visual component

Returns:
the component containing the GUI controls

actionPerformed

public void actionPerformed(java.awt.event.ActionEvent e)
Toggle debug

Specified by:
actionPerformed in interface java.awt.event.ActionListener
Parameters:
e - the action event (ignored)

stateChanged

public void stateChanged(javax.swing.event.ChangeEvent e)
Set the threshold value

Specified by:
stateChanged in interface javax.swing.event.ChangeListener
Parameters:
e - the Changeevent (ignored)