public class LensTranslatingGraphMousePlugin extends TranslatingGraphMousePlugin implements MouseListener, MouseMotionListener
Modifier and Type | Field and Description |
---|---|
protected boolean |
dragOnEdge |
protected boolean |
dragOnLens |
protected double |
edgeOffset |
cursor, down, modifiers
Constructor and Description |
---|
LensTranslatingGraphMousePlugin()
create an instance with default modifiers
|
LensTranslatingGraphMousePlugin(int modifiers)
create an instance with passed modifer value
|
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(MouseEvent e)
check the modifiers.
|
void |
mousePressed(MouseEvent e)
Check the event modifiers.
|
void |
mouseReleased(MouseEvent e)
unset the 'down' point and change the cursoe back to the system
default cursor
|
mouseClicked, mouseEntered, mouseExited, mouseMoved
checkModifiers, getCursor, getModifiers, setCursor, setModifiers
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
mouseClicked, mouseEntered, mouseExited
mouseMoved
protected boolean dragOnLens
protected boolean dragOnEdge
protected double edgeOffset
public LensTranslatingGraphMousePlugin()
public LensTranslatingGraphMousePlugin(int modifiers)
modifiers
- the mouse event modifier to activate this functionpublic void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
mousePressed
in class TranslatingGraphMousePlugin
e
- the eventpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
mouseReleased
in class TranslatingGraphMousePlugin
public void mouseDragged(MouseEvent e)
mouseDragged
in interface MouseMotionListener
mouseDragged
in class TranslatingGraphMousePlugin
e
- the eventCopyright © 2015. All rights reserved.