public class LabelEditingGraphMousePlugin<V,E> extends AbstractGraphMousePlugin implements MouseListener
| Modifier and Type | Field and Description |
|---|---|
protected E |
edge
the picked Edge, if any
|
protected V |
vertex
the picked Vertex, if any
|
cursor, down, modifiers| Constructor and Description |
|---|
LabelEditingGraphMousePlugin()
create an instance with default settings
|
LabelEditingGraphMousePlugin(int selectionModifiers)
create an instance with overrides
|
| Modifier and Type | Method and Description |
|---|---|
void |
mouseClicked(MouseEvent e)
For primary modifiers (default, MouseButton1):
pick a single Vertex or Edge that
is under the mouse pointer.
|
void |
mouseEntered(MouseEvent e) |
void |
mouseExited(MouseEvent e) |
void |
mousePressed(MouseEvent e)
If the mouse is over a picked vertex, drag all picked
vertices with the mouse.
|
void |
mouseReleased(MouseEvent e)
If the mouse is dragging a rectangle, pick the
Vertices contained in that rectangle
clean up settings from mousePressed
|
checkModifiers, getCursor, getModifiers, setCursor, setModifiersprotected V vertex
protected E edge
public LabelEditingGraphMousePlugin()
public LabelEditingGraphMousePlugin(int selectionModifiers)
selectionModifiers - for primary selectionpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenere - the eventpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListenerCopyright © 2016. All rights reserved.