|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.speckled.specksim.gui.visualiser.GLSelectionListener
public abstract class GLSelectionListener
Objects that are interested in what the selection in the
visualisation is should extend this and put appropriate behaviour
in the mouse* methods. Note that the subclass can also be made
Configurable, and an appropriate gui will be made
available. Selection listeners are added to the visualiser by
calling SpeckVisualiser.loadSelectionListener(String)
before the visualiser is constructed
| Constructor Summary | |
|---|---|
GLSelectionListener()
|
|
| Method Summary | |
|---|---|
abstract java.lang.String |
getName()
Gets a name for this listener |
abstract void |
init(SpeckSim simulator,
SimGUI gui,
SpeckVisualiser visualiser)
Called when the listener is loaded. |
protected void |
mouseClicked(java.awt.event.MouseEvent e)
Called when the mouse is clicked on the visualisation |
protected void |
mouseDragged(java.awt.event.MouseEvent e)
Called when the mouse is dragged on the visualisation |
protected void |
mouseEntered(java.awt.event.MouseEvent e)
Called when the mouse cursor enters the visualisation |
protected void |
mouseExited(java.awt.event.MouseEvent e)
Called when the mouse cursor leaves the visualisation |
protected void |
mouseMoved(java.awt.event.MouseEvent e)
Called when the mouse is moved on the visualisation |
protected void |
mousePressed(java.awt.event.MouseEvent e)
Called when the mouse is pressed on the visualisation |
protected void |
mouseReleased(java.awt.event.MouseEvent e)
Called when the mouse is released on the visualisation |
protected void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
Called when the mouse wheel is moved on the visualisation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GLSelectionListener()
| Method Detail |
|---|
public abstract java.lang.String getName()
public abstract void init(SpeckSim simulator,
SimGUI gui,
SpeckVisualiser visualiser)
simulator - The simulatorgui - The simulator interfacevisualiser - The visualiserprotected void mouseClicked(java.awt.event.MouseEvent e)
e - The mouse eventprotected void mousePressed(java.awt.event.MouseEvent e)
e - The mouse eventprotected void mouseReleased(java.awt.event.MouseEvent e)
e - The mouse eventprotected void mouseMoved(java.awt.event.MouseEvent e)
e - The mouse eventprotected void mouseDragged(java.awt.event.MouseEvent e)
e - The mouse eventprotected void mouseEntered(java.awt.event.MouseEvent e)
e - The mouse eventprotected void mouseExited(java.awt.event.MouseEvent e)
e - The mouse eventprotected void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
e - The mouse event
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||