From: elee <gk...@us...> - 2008-05-12 17:43:28
|
Update of /cvsroot/gmod/apollo/src/java/apollo/gui/genomemap In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv17657/gui/genomemap Modified Files: StrandedZoomableApolloPanel.java Log Message: + Added removing of loaded graphs when opening new data (not appending). Index: StrandedZoomableApolloPanel.java =================================================================== RCS file: /cvsroot/gmod/apollo/src/java/apollo/gui/genomemap/StrandedZoomableApolloPanel.java,v retrieving revision 1.104 retrieving revision 1.105 diff -C2 -d -r1.104 -r1.105 *** StrandedZoomableApolloPanel.java 9 May 2008 23:13:38 -0000 1.104 --- StrandedZoomableApolloPanel.java 12 May 2008 17:43:31 -0000 1.105 *************** *** 1974,1977 **** --- 1974,1981 ---- //navManager.action = null; // ?? //curationState.getNavigationBar().setEnabled(Config.isNavigationManagerEnabled()); + while (graphs.size() > 1) { + removeGraph(graphs.get(graphs.size() - 1)); + } + setGraphContainerViewVisibility(getGraphView().isVisible()); } *************** *** 2312,2321 **** } } ! if (visible && !graphContainerView.isVisible()) { ! graphContainerView.setVisible(visible); ! forwardSv.setSplitFract(0.8); ! } ! graphContainerView.setVisible(visible); ! for (DiscreteGraphView graph : goneGraphs) { removeGraph(graph); --- 2316,2320 ---- } } ! setGraphContainerViewVisibility(visible); for (DiscreteGraphView graph : goneGraphs) { removeGraph(graph); *************** *** 2324,2327 **** --- 2323,2335 ---- } + private void setGraphContainerViewVisibility(boolean visible) + { + if (visible && !graphContainerView.isVisible()) { + graphContainerView.setVisible(visible); + forwardSv.setSplitFract(0.8); + } + graphContainerView.setVisible(visible); + } + public void removeAllGraphs() { |