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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
ATTENTION : Abstraktion nach "Action" fehlt!
click on connection line: insert new Anchor
click on existing Anchor: select
click elsewhere: open move-mode menubr/>void
void
void
void
void
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 FIXMEvoid
shift = x only suppresses y
ctrl = y only suppresses x
shift AND ctrl cancel editing
-
Constructor Details
-
MyMouseListener
MyMouseListener()
-
-
Method Details
-
mouseMoved
- Specified by:
mouseMoved
in interfaceMouseMotionListener
-
mouseExited
- Specified by:
mouseExited
in interfaceMouseListener
-
mouseEntered
- Specified by:
mouseEntered
in 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:
mousePressed
in interfaceMouseListener
-
mouseDragged
- Specified by:
mouseDragged
in interfaceMouseMotionListener
-
mouseReleased
shift = x only suppresses y
ctrl = y only suppresses x
shift AND ctrl cancel editing- Specified by:
mouseReleased
in 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:
mouseClicked
in interfaceMouseListener
-