verinec.gui.core
Class NwComponent.Mouse
java.lang.Object
java.awt.event.MouseAdapter
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.
|
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.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NwComponent.Mouse
NwComponent.Mouse()
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:
- If component is already selected and ctrl not pressed, do nothing.
- If component is already selected and ctrl is pressed, unselect it.
- If component is not already selected and ctrl not pressed,
select this component and unselect all others.
- If component is not already selected and ctrl is pressed,
just select it without unselecting others.
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