Package uk.ac.man.cs.mig.util.graph.ui

Examples of uk.ac.man.cs.mig.util.graph.ui.GraphComponent


      if(selObj != null) {
        if(selObj instanceof OWLNamedClass) {
          int radius = dlg.getClassRadius();
          int supersSubsOptions = dlg.getSupersSubsOption();
          for(Iterator it = tab.getGraphComponents().iterator(); it.hasNext(); ) {
            GraphComponent curGraphComponent = (GraphComponent) it.next();
            if(supersSubsOptions == ClassRadiusDialog.SUPERS_AND_SUBS) {
              curGraphComponent.getVisualisedObjectManager().showObject(selObj, radius, OWLNamedClass.class);;
            }
            else if(supersSubsOptions == ClassRadiusDialog.SUPERS_ONLY) {
              curGraphComponent.getVisualisedObjectManager().showParents(selObj, radius, OWLNamedClass.class);
            }
            else {
              curGraphComponent.getVisualisedObjectManager().showChildren(selObj, radius, OWLNamedClass.class);
            }
          }
        }
      }
    }
View Full Code Here


  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(ActionEvent e) {
    for(Iterator it = tab.getAllGraphComponents().iterator(); it.hasNext(); ) {
      GraphComponent graphComponent = (GraphComponent) it.next();
      int zoomLevel = graphComponent.getGraphView().getZoomLevel();
      zoomLevel += 10;
      graphComponent.getGraphView().setZoomLevel(zoomLevel);
    }
  }
View Full Code Here

   * @param format The <code>ExportFormat</code> for the data.
   */
  protected void doExport(OutputStream os,
                          ExportFormat format) {
    ExportFormat exportFormat = formatPage.getSelectedExportFormat();
    GraphComponent graphComponent = hierarchyPage.getSelectedGraphComponent();
    exportFormat.export(graphComponent.getController(), os);
  }
View Full Code Here

   */
  public void actionPerformed(ActionEvent e) {
    Object selObj = tab.getSelectionModel().getSelectedClass();
    if(selObj != null) {
      for(Iterator it = tab.getGraphComponents().iterator(); it.hasNext(); ) {
        GraphComponent graphComponent = (GraphComponent) it.next();
        graphComponent.getVisualisedObjectManager().hideObject(selObj);
      }
    }
  }
View Full Code Here

  }


  protected void forceRepaint() {
    for(Iterator it = getGraphComponents().iterator(); it.hasNext(); ){
      GraphComponent curGraphComponent = (GraphComponent) it.next();
      curGraphComponent.getGraphView().repaint();
    }
  }
View Full Code Here

  }


  public void actionPerformed(ActionEvent e) {
    Object[] objs = tab.getAssertedGraphComponent().getVisualisedObjectManager().getVisualisedObjects();
    GraphComponent graphComponent = tab.getInferredGraphComponent();
    graphComponent.getVisualisedObjectManager().hideAll();
    graphComponent.getVisualisedObjectManager().showObjects(objs);
    // Make sure that we refresh the inferred hierarchy
    LazyTreeNode node = (LazyTreeNode) inferredHierarchy.getModel().getRoot();
    node.reload();
  }
View Full Code Here

   */
  public void actionPerformed(ActionEvent e) {
    Object selObj = tab.getSelectionModel().getSelectedClass();
    if(selObj != null) {
      for(Iterator it = tab.getGraphComponents().iterator(); it.hasNext(); ) {
        GraphComponent graphComponent = (GraphComponent) it.next();
        graphComponent.getVisualisedObjectManager().hideChildren(selObj);
      }
    }
  }
View Full Code Here

  /**
   * Invoked when an action occurs.
   */
  public void actionPerformed(ActionEvent e) {
    for(Iterator it = tab.getAllGraphComponents().iterator(); it.hasNext(); ) {
      GraphComponent graphComponent = (GraphComponent) it.next();
      int zoomLevel = graphComponent.getGraphView().getZoomLevel();
      zoomLevel -= 10;
      graphComponent.getGraphView().setZoomLevel(zoomLevel);
    }
  }
View Full Code Here

  public void actionPerformed(ActionEvent e) {
    Object selObj;
    selObj = tab.getSelectionModel().getSelectedClass();
    if(selObj != null) {
      for(Iterator it = tab.getGraphComponents().iterator(); it.hasNext(); ) {
        GraphComponent curGraphComponent = (GraphComponent) it.next();
        curGraphComponent.getVisualisedObjectManager().showChildren(selObj, OWLNamedClass.class);
      }
    }
  }
View Full Code Here

        return;
      }
    }

    for(Iterator it = tab.getGraphComponents().iterator(); it.hasNext(); ) {
      GraphComponent graphComponent = (GraphComponent) it.next();
      graphComponent.getVisualisedObjectManager().showObjects(clses);
    }
  }
View Full Code Here

TOP

Related Classes of uk.ac.man.cs.mig.util.graph.ui.GraphComponent

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.