com.speckled.specksim.gui.imp
Class InspectorTrigger

java.lang.Object
  extended by com.speckled.specksim.gui.visualiser.GLSelectionListener
      extended by 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

Constructor Summary
InspectorTrigger()
           
 
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 com.speckled.specksim.gui.visualiser.GLSelectionListener
mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseWheelMoved
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InspectorTrigger

public InspectorTrigger()
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

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