public void run() { updating = true; while (updatePending) { updatePending = false; Cytoscape.getCurrentNetworkView().redrawGraph(false, true); } updating = false; } }
public void actionPerformed(ActionEvent e) { selectOtherEdges(); networkView.redrawGraph(false, true); } } // SelectOthersAction
public void actionPerformed(ActionEvent e) { deselectAllEdges(); networkView.redrawGraph(false, true); } } // DeselectAllAction
public void actionPerformed(ActionEvent e) { selectAllEdges(); networkView.redrawGraph(false, true); } } // HideAllAction
@Override public void run() { Cytoscape.getCurrentNetworkView().redrawGraph(false, true); } });
public void actionPerformed(ActionEvent e) { GinyUtils.unHideAllEdges(view); hideOtherEdges(); networkView.redrawGraph(false, true); } } // HideOthersAction
public void actionPerformed(ActionEvent e) { if ((selectedTreePaths == null) || (selectedTreePaths.length == 0)) { GinyEdgeControlDialog.this.getToolkit().beep(); return; } GinyUtils.unHideAllEdges(view); String action = e.getActionCommand(); for (int i = 0; i < selectedTreePaths.length; i++) hideEdgesByName(selectedTreePaths[i]); networkView.redrawGraph(false, true); } // actionPerformed } // HideButtonAction
public void propertyChange(PropertyChangeEvent e) { if (e.getPropertyName().equals(Cytoscape.ATTRIBUTES_CHANGED)) { // apply vizmaps final CyNetworkView currentView = Cytoscape.getCurrentNetworkView(); if (currentView != Cytoscape.getNullNetworkView()) Cytoscape.getCurrentNetworkView().redrawGraph(false, true); } } };
public void actionPerformed(ActionEvent e) { if ((selectedTreePaths == null) || (selectedTreePaths.length == 0)) { GinyEdgeControlDialog.this.getToolkit().beep(); return; } GinyUtils.deselectAllEdges(view); for (int i = 0; i < selectedTreePaths.length; i++) selectEdgesByName(selectedTreePaths[i]); networkView.redrawGraph(false, true); } // actionPerformed } // SelectAction
private void resetButtonActionPerformed(java.awt.event.ActionEvent evt) { if (cg == null || cg.getRenderedImage() == null) return; if (cg instanceof URLImageCustomGraphics) { final Image image = ((URLImageCustomGraphics) cg).resetImage(); imageViewPanel.setImage(image); final int w = image.getWidth(null); final int h = image.getHeight(null); widthTextField.setText(Integer.toString(w)); heightTextField.setText(Integer.toString(h)); cg.setWidth(w); cg.setHeight(h); Cytoscape.getCurrentNetworkView().redrawGraph(false, true); } }
public void actionPerformed(java.awt.event.ActionEvent evt) { calculator.getMappings().set(0,savedMapping); Cytoscape.getVisualMappingManager().applyAppearances(); Cytoscape.getCurrentNetworkView().redrawGraph(false, true); firePropertyChange(EDITOR_WINDOW_CLOSED, this, type); setVisible(false); } });
public void run() { setStatus("Updating network view. Please wait..."); setPercentCompleted(-1); try { view.redrawGraph(false, true); } catch (Exception e) { setException(e, "Could not update network view for network: " + view.getTitle()); } setPercentCompleted(100); }
public void actionPerformed(ActionEvent arg0) { Cytoscape.getVisualMappingManager() .setNetworkView(Cytoscape.getCurrentNetworkView()); Cytoscape.getCurrentNetworkView().redrawGraph(false, true); dispose(); } });
private void applyStyle(final Set<CyNetworkView> targetViews) { // Switch current Visual Style Cytoscape.getVisualMappingManager().setVisualStyle(styleName); // Apply it for selected views. for (CyNetworkView view: targetViews) { view.setVisualStyle(styleName); view.redrawGraph(false, true); Cytoscape.getVisualMappingManager().setNetworkView(view); } }
/** * DOCUMENT ME! * * @param e DOCUMENT ME! */ public void actionPerformed(ActionEvent e) { CyNetworkView currView = Cytoscape.getCurrentNetworkView(); if (!showFlag) { ((DingNetworkView)currView).setGraphLOD(new CyGraphLOD()); } else { ((DingNetworkView)currView).setGraphLOD(new CyGraphAllLOD()); } currView.redrawGraph(true,false); }
public void actionPerformed(ActionEvent e) { List<String> names = getBypassNames(); String id = graphObj.getIdentifier(); for (String attrName : names) if (attrs.hasAttribute(id, attrName)) attrs.deleteAttribute(id, attrName); Cytoscape.getCurrentNetworkView().redrawGraph(false, true); BypassHack.finished(); } });
public void actionPerformed(ActionEvent e) { final VisualPropertyDependency deps = vmm.getVisualStyle().getDependency(); deps.set(def,item.isSelected()); syncDependencyStates(deps,def); Cytoscape.getCurrentNetworkView().redrawGraph(false, true); } });
public void redo() { super.redo(); net.hideEdges(edges); net.hideNodes(nodes); CyNetworkView netView = Cytoscape.getNetworkView(net.getIdentifier()); netView.redrawGraph(true, true); Cytoscape.firePropertyChange(Cytoscape.NETWORK_MODIFIED, netView, net); deleteAction.setEnabled(false); }
public void actionPerformed(ActionEvent e) { String id = graphObj.getIdentifier(); if (attrs.hasAttribute(id, type.getBypassAttrName())) attrs.deleteAttribute(id, type.getBypassAttrName()); Cytoscape.getCurrentNetworkView().redrawGraph(false, true); BypassHack.finished(); } });
public void undo() { super.undo(); net.restoreNodes(nodes); net.restoreEdges(edges); CyNetworkView netView = Cytoscape.getNetworkView(net.getIdentifier()); if ( netView != null && netView != Cytoscape.getNullNetworkView() ) { for ( int i = 0; i < nodes.length; i++ ) { NodeView nv = netView.getNodeView(nodes[i]); nv.setOffset( xPos[i], yPos[i] ); } } netView.redrawGraph(true, true); Cytoscape.firePropertyChange(Cytoscape.NETWORK_MODIFIED, netView, net); deleteAction.setEnabled(true); } }