Package eu.bandm.sighkn
Class KennLine.SwingRep.MyMouseListener
java.lang.Object
eu.bandm.sighkn.KennLine.SwingRep.MyMouseListener
- All Implemented Interfaces:
MouseListener,MouseMotionListener,EventListener
- Enclosing class:
- KennLine.SwingRep
class KennLine.SwingRep.MyMouseListener
extends Object
implements MouseListener, MouseMotionListener
ATTENTION : Abstraktion nach "Action" fehlt!
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidATTENTION : Abstraktion nach "Action" fehlt!
click on connection line: insert new Anchor
click on existing Anchor: select
click elsewhere: open move-mode menubr/>voidvoidvoidvoidvoidIf over anchor: Start a new gui animation.
If shift: y only
If ctrl: x only
If released immediately: it is a click and not a drag, so cancel animation.
if NOT over anchor, but over threshold line (x or y) --> move threshold line FIXMEvoidshift = x only suppresses y
ctrl = y only suppresses x
shift AND ctrl cancel editing
-
Constructor Details
-
MyMouseListener
MyMouseListener()
-
-
Method Details
-
mouseMoved
- Specified by:
mouseMovedin interfaceMouseMotionListener
-
mouseExited
- Specified by:
mouseExitedin interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEnteredin interfaceMouseListener
-
mousePressed
If over anchor: Start a new gui animation.
If shift: y only
If ctrl: x only
If released immediately: it is a click and not a drag, so cancel animation.
if NOT over anchor, but over threshold line (x or y) --> move threshold line FIXME- Specified by:
mousePressedin interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDraggedin interfaceMouseMotionListener
-
mouseReleased
shift = x only suppresses y
ctrl = y only suppresses x
shift AND ctrl cancel editing- Specified by:
mouseReleasedin interfaceMouseListener
-
mouseClicked
ATTENTION : Abstraktion nach "Action" fehlt!
click on connection line: insert new Anchor
click on existing Anchor: select
click elsewhere: open move-mode menubr/>- Specified by:
mouseClickedin interfaceMouseListener
-