com.speckled.specksim.gui.imp
Class SpeckSelector
java.lang.Object
com.speckled.specksim.gui.visualiser.GLSelectionListener
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
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SpeckSelector
public SpeckSelector()
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 simulatorgui - The simulator interfacevisualiser - 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