com.speckled.specksim.gui.imp
Class InspectorTrigger
java.lang.Object
com.speckled.specksim.gui.visualiser.GLSelectionListener
com.speckled.specksim.gui.imp.InspectorTrigger
public class InspectorTrigger
- extends GLSelectionListener
Allows the user to open a SpeckInspector frame by clicking on the
visualisation. Left click to use the current inspector, CTRL+click
to open a new inspector
- 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. |
protected void |
mouseReleased(java.awt.event.MouseEvent e)
Called when the mouse is released on the visualisation |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InspectorTrigger
public InspectorTrigger()
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
mouseReleased
protected void mouseReleased(java.awt.event.MouseEvent e)
- Description copied from class:
GLSelectionListener
- Called when the mouse is released on the visualisation
- Overrides:
mouseReleased in class GLSelectionListener
- Parameters:
e - The mouse event