com.speckled.specksim.gui.imp
Class SpeckSelector

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

public class SpeckSelector
extends GLSelectionListener

This GLSelection listener works with the SpeckRenderer. When the user clicks on a speck, it is then rendered with a shell, and followed by the camera.

Author:
ryanm

Constructor Summary
SpeckSelector()
           
 
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

SpeckSelector

public SpeckSelector()
Method Detail

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

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