com.speckled.specksim.gui.imp
Class BeaconSwitcher

java.lang.Object
  extended by com.speckled.specksim.gui.visualiser.GLSelectionListener
      extended by com.speckled.specksim.gui.imp.BeaconSwitcher

public class BeaconSwitcher
extends GLSelectionListener

This selection listener will toggle the beacon status of a variety of speck flavours, where this kind of thing is appropriate

Author:
ryanm

Constructor Summary
BeaconSwitcher()
          Constructor
 
Method Summary
 java.lang.String getName()
          Gets a name for this listener
 void init(SpeckSim simulator, SimGUI gui, SpeckVisualiser visualiser)
          Called when the listener is loaded.
 void mouseClicked(java.awt.event.MouseEvent e)
          Called when the mouse is clicked on the visualisation
 
Methods inherited from class com.speckled.specksim.gui.visualiser.GLSelectionListener
mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BeaconSwitcher

public BeaconSwitcher()
Constructor

Method Detail

init

public void init(SpeckSim simulator,
                 SimGUI gui,
                 SpeckVisualiser visualiser)
Description copied from class: GLSelectionListener
Called when the listener is loaded. You'll probably want to retain the reference to the simulator so as to be able to get access to the selected speck

Specified by:
init in class GLSelectionListener
Parameters:
simulator - The simulator
gui - The simulator interface
visualiser - The visualiser

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent e)
Description copied from class: GLSelectionListener
Called when the mouse is clicked on the visualisation

Overrides:
mouseClicked in class GLSelectionListener
Parameters:
e - The mouse event

getName

public java.lang.String getName()
Description copied from class: GLSelectionListener
Gets a name for this listener

Specified by:
getName in class GLSelectionListener
Returns:
A name for this listener