/**
  * Shows the refresh notification when the structure of the workspace graph has changed.
  *
  * @param event
  * @see GraphListener#graphChanged(org.gephi.graph.api.GraphEvent)
  */
 public void graphChanged(GraphEvent event) {
   boolean previous = model.isWorkspaceBarVisible();
   model.setWorkspaceBarVisible(true);
   if (!previous) {
     fireEvent(GRAPH_CHANGED, true);
   }
 }
 public void setCurrentPreset(PreviewPreset preset) {
   if (model != null) {
     model.setCurrentPreset(preset);
     PreviewModel previewModel = previewController.getModel();
     previewModel.getProperties().applyPreset(preset);
   }
 }
 public void savePreset(String name) {
   if (model != null) {
     PreviewModel previewModel = previewController.getModel();
     Map<String, Object> map = new HashMap<String, Object>();
     for (PreviewProperty p : previewModel.getProperties().getProperties()) {
       map.put(p.getName(), p.getValue());
     }
     PreviewPreset preset = new PreviewPreset(name, map);
     presetUtils.savePreset(preset);
     model.setCurrentPreset(preset);
   }
 }
 public void setVisibilityRatio(float visibilityRatio) {
   if (model != null) {
     model.setVisibilityRatio(visibilityRatio);
   }
 }