verinec.gui.core
Class NwComponent.Mouse

java.lang.Object
  extended by java.awt.event.MouseAdapter
      extended by verinec.gui.core.NwComponent.Mouse
All Implemented Interfaces:
MouseListener, EventListener
Enclosing class:
NwComponent

 class NwComponent.Mouse
extends MouseAdapter

Handling of mouse clicks on nodes: select/unselect and context menue with right click.


Constructor Summary
NwComponent.Mouse()
           
 
Method Summary
 void mousePressed(MouseEvent e)
          Select a component or unselect it from selected group with ctrl-key pressed.
 void mouseReleased(MouseEvent e)
          Show context menue if there are items in it when button3 is pressed on component.
 
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

NwComponent.Mouse

NwComponent.Mouse()
Method Detail

mousePressed

public final void mousePressed(MouseEvent e)
Select a component or unselect it from selected group with ctrl-key pressed. Component is selected with left or right click: Unselecting all nodes by right-clicking on the panel area is handled by DrawPanel.

Specified by:
mousePressed in interface MouseListener
Overrides:
mousePressed in class MouseAdapter
Parameters:
e - Mouse click

mouseReleased

public final void mouseReleased(MouseEvent e)
Show context menue if there are items in it when button3 is pressed on component.

Specified by:
mouseReleased in interface MouseListener
Overrides:
mouseReleased in class MouseAdapter
Parameters:
e - Mouse click

Copyright © 2005 Verinec, DIUF