|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.event.MouseAdapter
verinec.gui.configurator.WireConnectionListener
class WireConnectionListener
Mouse listener for MultiBindings and SingleInterfaces to detect connection of a wire. In order to get a preview, listens also to drag events.
| Field Summary | |
|---|---|
private Configurator |
configurator
|
private int |
oldState
Store the old edit state of the panel. |
private VerinecStudio |
studio
|
private NwComponent |
target
|
| Constructor Summary | |
|---|---|
WireConnectionListener(Configurator configurator,
VerinecStudio studio)
Constructor for the listener. |
|
| Method Summary | |
|---|---|
void |
mouseDragged(MouseEvent e)
Dragging on the interface must be forwared to the DrawPanel. |
void |
mouseMoved(MouseEvent e)
Ignore. |
void |
mousePressed(MouseEvent e)
When an interface is selected with left button, we want to connect it to other interface or hub. |
void |
mouseReleased(MouseEvent e)
Determines where the binding should be added to. |
| 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 |
| Field Detail |
|---|
private final Configurator configurator
private final VerinecStudio studio
private NwComponent target
private int oldState
| Constructor Detail |
|---|
public WireConnectionListener(Configurator configurator,
VerinecStudio studio)
configurator - The configuration module class.studio - The main application class.| Method Detail |
|---|
public void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class MouseAdaptere - The mouse click event.public void mousePressed(MouseEvent e)
mousePressed in interface MouseListenermousePressed in class MouseAdaptere - The event.public void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - The event.public void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenere - The event.
|
Copyright © 2005 Verinec, DIUF | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||