Package org.eclipse.graphiti.ui.internal.util.gef

Examples of org.eclipse.graphiti.ui.internal.util.gef.ScalableRootEditPartAnimated


   
    RootEditPart rootEditPart = graphicalViewer.getRootEditPart();
   
    // TODO Graphiti - not a ScalableRootEditPart but some kind of DiagramEditPart
    if (rootEditPart instanceof ScalableRootEditPartAnimated) {
      ScalableRootEditPartAnimated diagramEditPart = (ScalableRootEditPartAnimated) rootEditPart;
      IFigure figure = diagramEditPart.getFigure();
      thumbnail = new ScrollableThumbnail( (Viewport) figure);
      IFigure source = diagramEditPart.getLayer(LayerConstants.PRINTABLE_LAYERS);
      thumbnail.setSource(source);
      lws.setContents(thumbnail);
    } else if (rootEditPart instanceof ScalableRootEditPart) {
      thumbnail = new ScrollableThumbnail( (Viewport) ((ScalableRootEditPart) rootEditPart).getFigure());
      thumbnail.setSource(((ScalableRootEditPart) rootEditPart).getLayer(LayerConstants.PRINTABLE_LAYERS));
View Full Code Here


      if (graphicalViewer == null)
        return null;
     
      RootEditPart root = graphicalViewer.getRootEditPart();
      if (root instanceof ScalableRootEditPartAnimated) {
        ScalableRootEditPartAnimated scalableRoot = (ScalableRootEditPartAnimated) root;
        return scalableRoot.getZoomManager();
      } else if (root instanceof ScalableRootEditPart) {
        return ((ScalableRootEditPart) root).getZoomManager();
      }
      return null;
    } else if (type == IContentOutlinePage.class) {
View Full Code Here

TOP

Related Classes of org.eclipse.graphiti.ui.internal.util.gef.ScalableRootEditPartAnimated

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.