public class LabelEditingGraphMousePlugin<V,E> extends AbstractGraphMousePlugin implements java.awt.event.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 overides
|
Modifier and Type | Method and Description |
---|---|
void |
mouseClicked(java.awt.event.MouseEvent e)
For primary modifiers (default, MouseButton1):
pick a single Vertex or Edge that
is under the mouse pointer.
|
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e)
If the mouse is over a picked vertex, drag all picked
vertices with the mouse.
|
void |
mouseReleased(java.awt.event.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, setModifiers
protected V vertex
protected E edge
public LabelEditingGraphMousePlugin()
public LabelEditingGraphMousePlugin(int selectionModifiers)
selectionModifiers
- for primary selectionaddToSelectionModifiers
- for additional selectionpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
e
- the eventpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener