|
||||||||||
| 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
be.ac.ulg.montefiore.run.totem.visualtopo.guiModules.topEdit.graph.MyEditingGraphMousePlugin
public class MyEditingGraphMousePlugin
A plugin that can create vertices and directed edges using mouse gestures.
Based on EditingGraphMousePlugin by Tom Nelson.
When batch mode is false, each element creation (vertex, edge) triggers a dialog to edit the properties of
corresponding node and link. Otherwise default objects are created.
| Field Summary |
|---|
| Fields inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
cursor, modifiers |
| Constructor Summary | |
|---|---|
MyEditingGraphMousePlugin()
|
|
MyEditingGraphMousePlugin(int modifiers)
create instance and prepare shapes for visual effects |
|
| Method Summary | |
|---|---|
boolean |
checkModifiers(java.awt.event.MouseEvent e)
overrided to be more flexible, and pass events with key combinations. |
boolean |
getBatchMode()
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseDragged(java.awt.event.MouseEvent e)
If startVertex is non-null, stretch an edge shape between startVertex and the mouse pointer to simulate edge creation |
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
If the mouse is pressed in an empty area, create a new vertex there. |
void |
mouseReleased(java.awt.event.MouseEvent e)
If startVertex is non-null, and the mouse is released over an existing vertex, create an undirected edge from startVertex to the vertex under the mouse pointer. |
void |
setBatchMode(boolean batchMode)
|
void |
setVertexLocations(edu.uci.ics.jung.visualization.SettableVertexLocationFunction vertexLocations)
sets the vertex locations. |
| Methods inherited from class edu.uci.ics.jung.visualization.control.AbstractGraphMousePlugin |
|---|
getCursor, getModifiers, setCursor, setModifiers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MyEditingGraphMousePlugin()
public MyEditingGraphMousePlugin(int modifiers)
modifiers - | Method Detail |
|---|
public void setBatchMode(boolean batchMode)
setBatchMode in interface BatchModeCapablepublic boolean getBatchMode()
getBatchMode in interface BatchModeCapablepublic void setVertexLocations(edu.uci.ics.jung.visualization.SettableVertexLocationFunction vertexLocations)
vertexLocations - public boolean checkModifiers(java.awt.event.MouseEvent e)
checkModifiers in interface edu.uci.ics.jung.visualization.control.GraphMousePlugincheckModifiers in class edu.uci.ics.jung.visualization.control.AbstractGraphMousePluginpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged in interface java.awt.event.MouseMotionListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved in interface java.awt.event.MouseMotionListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||