[graphl-cvs] graphl/src/org/mediavirus/graphl/interaction GraphlManipulator.java
Status: Pre-Alpha
Brought to you by:
flo1
From: Flo L. <fl...@us...> - 2004-12-10 16:13:14
|
Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl/interaction In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9448/src/org/mediavirus/graphl/interaction Modified Files: GraphlManipulator.java Log Message: added context menu for graph to switch configurations in the applet or without menubar Index: GraphlManipulator.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/interaction/GraphlManipulator.java,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** GraphlManipulator.java 30 Nov 2004 09:38:34 -0000 1.7 --- GraphlManipulator.java 10 Dec 2004 16:13:04 -0000 1.8 *************** *** 17,20 **** --- 17,21 ---- import org.mediavirus.graphl.graph.rdf.RDFNode; import org.mediavirus.graphl.gui.EdgeContextMenu; + import org.mediavirus.graphl.gui.GraphContextMenu; import org.mediavirus.graphl.gui.NodeContextMenu; import org.mediavirus.graphl.gui.NodeEditingController; *************** *** 50,53 **** --- 51,55 ---- private NodeContextMenu nodeMenu = null; private EdgeContextMenu edgeMenu = null; + private GraphContextMenu graphMenu = null; int sequence = 0; *************** *** 76,79 **** --- 78,85 ---- edgeMenu.show(e.getX(), e.getY(), overEdge); } + else { + graphPane.pauseLayouter(); + graphMenu.show(e.getX(), e.getY(), graphPane.getGraph()); + } } else if (e.getButton() == MouseEvent.BUTTON1) { *************** *** 181,184 **** --- 187,194 ---- edgeMenu.show(e.getX(), e.getY(), overEdge); } + else { + graphPane.pauseLayouter(); + graphMenu.show(e.getX(), e.getY(), graphPane.getGraph()); + } } else if (dragNode!=null) { *************** *** 313,317 **** nodeMenu = new NodeContextMenu(parent); edgeMenu = new EdgeContextMenu(parent); ! } } --- 323,327 ---- nodeMenu = new NodeContextMenu(parent); edgeMenu = new EdgeContextMenu(parent); ! graphMenu = new GraphContextMenu(parent); } } |