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, mouseMovedcheckModifiers, getCursor, getModifiers, setCursor, setModifiersclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitmouseClicked, mouseEntered, mouseExitedmouseMovedprotected 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 MouseListenermousePressed in class TranslatingGraphMousePlugine - the eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenermouseReleased in class TranslatingGraphMousePluginpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenermouseDragged in class TranslatingGraphMousePlugine - the eventCopyright © 2016. All rights reserved.