Esempio n. 1
0
  @Override
  public void actionPerformed(ActionEvent e) {
    ModelManager modelManager = managerProvider.get();

    Optional<NetworkViewSet> nvsOpt = modelManager.getActiveNetworkViewSet();
    if (nvsOpt.isPresent()) {
      NetworkViewSet nvs = nvsOpt.get();
      Optional<AnnotationSet> asOpt = nvs.getActiveAnnotationSet();

      AnnotationRenderer annotationRenderer = rendererProvider.get();
      annotationRenderer.redrawAnnotations(nvs, asOpt);
    }
  }
 @Override
 public void actionPerformed(ActionEvent e) {
   Optional<NetworkViewSet> nvs = modelManager.getActiveNetworkViewSet();
   if (nvs.isPresent()) {
     ManageAnnotationSetsDialog dialog = dialogFactory.create(nvs.get());
     dialog.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
     dialog.pack();
     dialog.setLocationRelativeTo(jFrameProvider.get());
     dialog.setVisible(true);
   }
 }