Package org.rascalmpl.library.vis.graphics

Examples of org.rascalmpl.library.vis.graphics.SWTGraphicsContext


    int figureWidth = (int)Math.ceil(figure.size.getX());
    int figureHeight = (int)Math.ceil(figure.size.getY());
   
    Image image = new Image(getDisplay(), figureWidth, figureHeight);
    GC gc = new GC(image);
    SWTGraphicsContext swtGC = new SWTGraphicsContext();
    swtGC.setGC(gc);
   
    gc.setBackground(getDisplay().getSystemColor(SWT.COLOR_WHITE));

    figure.draw(new Coordinate(1.0, 1.0), swtGC, new Rectangle(0, 0, figureWidth, figureHeight), new SWTElementsVisibilityManager().getVisibleSWTElementsVector());
 
View Full Code Here


    }
    scrollBarsVisible = new TwoDimensional<Boolean>(false, false);
    scrollableMinSize = new BoundingBox(MIN_SIZE + scrollbarSize.getX(), MIN_SIZE+ scrollbarSize.getY());
    swtVisiblityMangager = new SWTElementsVisibilityManager();
    zorderManager = new SWTZOrderManager(parent,overlapFigures);
    gc = new SWTGraphicsContext();
    topLevel = new TransformMatrix();
    viewPortRectangle = new Rectangle(viewPortLocation, viewPortSize);
  }
View Full Code Here

TOP

Related Classes of org.rascalmpl.library.vis.graphics.SWTGraphicsContext

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.