[graphl-cvs] graphl/src/org/mediavirus/graphl/gui EdgeContextMenu.java NodeContextMenu.java InPlaceN
Status: Pre-Alpha
Brought to you by:
flo1
From: Flo L. <fl...@us...> - 2005-09-05 15:47:30
|
Update of /cvsroot/graphl/graphl/src/org/mediavirus/graphl/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv15035/src/org/mediavirus/graphl/gui Modified Files: EdgeContextMenu.java NodeContextMenu.java InPlaceNodeEditor.java Log Message: added methods to access filtered and unfiltered versions of the graph in GraphlPane Index: EdgeContextMenu.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/gui/EdgeContextMenu.java,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** EdgeContextMenu.java 11 Jan 2005 13:26:42 -0000 1.17 --- EdgeContextMenu.java 5 Sep 2005 15:47:18 -0000 1.18 *************** *** 95,99 **** } ! graphlPane.getGraph().notifyLayoutUpdated(); graphlPane.repaint(); } --- 95,99 ---- } ! graphlPane.getFilteredGraph().notifyLayoutUpdated(); graphlPane.repaint(); } *************** *** 380,384 **** public void resourceChanged(String property) { currentEdge.setType(property); ! graphlPane.getGraph().notifyPropertyChanged(); graphlPane.repaint(); } --- 380,384 ---- public void resourceChanged(String property) { currentEdge.setType(property); ! graphlPane.getFilteredGraph().notifyPropertyChanged(); graphlPane.repaint(); } Index: NodeContextMenu.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/gui/NodeContextMenu.java,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -d -r1.18 -r1.19 *** NodeContextMenu.java 11 Jan 2005 13:26:42 -0000 1.18 --- NodeContextMenu.java 5 Sep 2005 15:47:18 -0000 1.19 *************** *** 95,99 **** } ! graphlPane.getGraph().notifyLayoutUpdated(); graphlPane.repaint(); } --- 95,99 ---- } ! graphlPane.getFilteredGraph().notifyLayoutUpdated(); graphlPane.repaint(); } *************** *** 390,394 **** public void resourceChanged(String property) { currentNode.setType(property); ! graphlPane.getGraph().notifyPropertyChanged(); graphlPane.repaint(); } --- 390,394 ---- public void resourceChanged(String property) { currentNode.setType(property); ! graphlPane.getFilteredGraph().notifyPropertyChanged(); graphlPane.repaint(); } Index: InPlaceNodeEditor.java =================================================================== RCS file: /cvsroot/graphl/graphl/src/org/mediavirus/graphl/gui/InPlaceNodeEditor.java,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** InPlaceNodeEditor.java 24 Aug 2005 16:11:15 -0000 1.3 --- InPlaceNodeEditor.java 5 Sep 2005 15:47:18 -0000 1.4 *************** *** 159,163 **** m_graphPane.add(m_component); editingStarting(m_component); ! m_graphPane.getGraph().addGraphListener(this); m_editingInProgress=true; } --- 159,163 ---- m_graphPane.add(m_component); editingStarting(m_component); ! m_graphPane.getFilteredGraph().addGraphListener(this); m_editingInProgress=true; } *************** *** 176,181 **** return false; m_graphPane.remove(m_component); ! m_graphPane.getGraph().removeGraphListener(this); ! m_graphPane.getGraph().notifyLayoutUpdated(); m_editingInProgress=false; } --- 176,181 ---- return false; m_graphPane.remove(m_component); ! m_graphPane.getFilteredGraph().removeGraphListener(this); ! m_graphPane.getFilteredGraph().notifyLayoutUpdated(); m_editingInProgress=false; } *************** *** 195,200 **** m_nodeEditingController.editingAborted(m_node); m_graphPane.remove(m_component); ! m_graphPane.getGraph().removeGraphListener(this); ! m_graphPane.getGraph().notifyLayoutUpdated(); m_editingInProgress=false; } --- 195,200 ---- m_nodeEditingController.editingAborted(m_node); m_graphPane.remove(m_component); ! m_graphPane.getFilteredGraph().removeGraphListener(this); ! m_graphPane.getFilteredGraph().notifyLayoutUpdated(); m_editingInProgress=false; } |