|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin
cz.cuni.mff.ksi.jinfer.autoeditor.automatonvisualizer.graphmouseplugins.VertexPickingGraphMousePlugin<V>
public class VertexPickingGraphMousePlugin<V>
Graph mouse plugin providing picking of one vertex and notifying
AbstractComponent to end user interaction.
Modified VerticesPickingGraphMousePlugin originally by sviro.
| Field Summary | |
|---|---|
protected AbstractComponent<V> |
component
component that has to be notified that a vertex was picked by calling its GUIDone method. |
protected Step<V> |
edge
the picked Edge, if any |
protected boolean |
locked
controls whether the Vertices may be moved with the mouse |
protected double |
offsetx
the x distance from the picked vertex center to the mouse point |
protected double |
offsety
the y distance from the picked vertex center to the mouse point |
protected State<V> |
vertex
the picked Vertex, if any |
| Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
cursor, down, modifiers |
| Constructor Summary | |
|---|---|
VertexPickingGraphMousePlugin(AbstractComponent<V> component)
Create an instance with default settings. |
|
| Method Summary | |
|---|---|
void |
mouseClicked(MouseEvent e)
|
void |
mouseDragged(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mouseMoved(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
For primary modifiers (default, MouseButton1): pick a single Vertex or Edge that is under the mouse pointer. |
void |
mouseReleased(MouseEvent e)
clean up settings from mousePressed |
| Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
checkModifiers, getCursor, getModifiers, setCursor, setModifiers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected AbstractComponent<V> component
protected State<V> vertex
protected Step<V> edge
protected double offsetx
protected double offsety
protected boolean locked
| Constructor Detail |
|---|
public VertexPickingGraphMousePlugin(AbstractComponent<V> component)
| Method Detail |
|---|
public 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 MouseMotionListenerpublic 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 MouseMotionListener
|
jInfer | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||