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, setModifiers
protected V vertex
protected E edge
public LabelEditingGraphMousePlugin()
public LabelEditingGraphMousePlugin(int selectionModifiers)
selectionModifiers
- for primary selectionpublic void mouseClicked(MouseEvent e)
mouseClicked
in interface MouseListener
e
- the eventpublic void mouseReleased(MouseEvent e)
mouseReleased
in interface MouseListener
public void mousePressed(MouseEvent e)
mousePressed
in interface MouseListener
public void mouseEntered(MouseEvent e)
mouseEntered
in interface MouseListener
public void mouseExited(MouseEvent e)
mouseExited
in interface MouseListener
Copyright © 2015. All rights reserved.