Package rinde.sim.ui.renderers

Examples of rinde.sim.ui.renderers.ViewPort


        (int) (m * viewRect.height));
    final Image img = new Image(getDisplay(), size.x, size.y);
    final GC gc = new GC(img);

    for (final CanvasRenderer r : renderers) {
      r.renderStatic(gc, new ViewPort(new Point(0, 0), viewRect, m));
    }
    gc.dispose();
    return img;
  }
View Full Code Here


    final org.eclipse.swt.graphics.Point center = getCenteredOrigin();

    gc.drawImage(image, center.x, center.y);
    for (final CanvasRenderer renderer : renderers) {
      renderer.renderDynamic(gc, new ViewPort(new Point(center.x,
          center.y),
          viewRect, m), simulator.getCurrentTime());
    }

    final Rectangle content = image.getBounds();
View Full Code Here

TOP

Related Classes of rinde.sim.ui.renderers.ViewPort

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.