verinec.gui.configurator
Class Configurator.DrawPanelMouse

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by verinec.gui.configurator.Configurator.DrawPanelMouse
All Implemented Interfaces:
MouseListener, EventListener
Enclosing class:
Configurator

 class Configurator.DrawPanelMouse
extends MouseAdapter

Additional mouse listener for the DrawPanel. Detects node creation and resets toolbar to cursor when button3 is pressed.


Constructor Summary
Configurator.DrawPanelMouse()
           
 
Method Summary
 void mousePressed(MouseEvent e)
          RIGHT CLICK: reset selection of Toolbar to pointer.
 void mouseReleased(MouseEvent e)
          LEFT CLICK: If we are in CREATE state, create a new node at the event position.
 
Methods inherited from class java.awt.event.MouseAdapter
mouseClicked, mouseEntered, mouseExited
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Configurator.DrawPanelMouse

Configurator.DrawPanelMouse()
Method Detail

mousePressed

public void mousePressed(MouseEvent e)
RIGHT CLICK: reset selection of Toolbar to pointer.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Parameters:
e - The mouse click event.

mouseReleased

public void mouseReleased(MouseEvent e)
LEFT CLICK: If we are in CREATE state, create a new node at the event position.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e - The mouse click event.

Copyright © 2005 Verinec, DIUF