public class ViewTranslatingGraphMousePlugin extends AbstractGraphMousePlugin implements MouseListener, MouseMotionListener
cursor, down, modifiers| Constructor and Description |
|---|
ViewTranslatingGraphMousePlugin() |
ViewTranslatingGraphMousePlugin(int modifiers)
create an instance with passed modifer value
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseClicked(MouseEvent e) |
void |
mouseDragged(MouseEvent e)
chack the modifiers.
|
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mouseMoved(MouseEvent e) |
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
|
checkModifiers, getCursor, getModifiers, setCursor, setModifierspublic ViewTranslatingGraphMousePlugin()
public ViewTranslatingGraphMousePlugin(int modifiers)
modifiers - the mouse event modifier to activate this functionpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenere - the eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseDragged(MouseEvent e)
mouseDragged in interface MouseMotionListenere - the eventpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent e)
mouseMoved in interface MouseMotionListenerCopyright © 2016. All rights reserved.