public class LensTranslatingGraphMousePlugin extends TranslatingGraphMousePlugin implements java.awt.event.MouseListener, java.awt.event.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(java.awt.event.MouseEvent e)
check the modifiers.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Check the event modifiers.
|
void |
mouseReleased(java.awt.event.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, waitprotected 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(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenermousePressed in class TranslatingGraphMousePlugine - the eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class TranslatingGraphMousePluginpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class TranslatingGraphMousePlugine - the event