Package nodebox.client.visualizer

Examples of nodebox.client.visualizer.Visualizer


    private class Viewer extends JComponent {
        public void paint(Graphics g) {
            Graphics2D g2 = (Graphics2D) g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON);
            g2.translate(getWidth() / 2, getHeight() / 2);
            Visualizer v = VisualizerFactory.getVisualizer(outputValues, ListUtils.listClass(outputValues));
            // todo: handle canvas clipping
            v.draw(g2, outputValues);
        }
View Full Code Here


public class ObjectsRenderer {

    public static void render(Iterable<?> objects, Rectangle2D bounds, File file) {
        // TODO Remove reference to Viewer.getVisualizer.
        Visualizer v = VisualizerFactory.getVisualizer(objects, ListUtils.listClass(objects));
        if (file.getName().toLowerCase().endsWith(".pdf")) {
            LinkedVisualizer linkedVisualizer = new LinkedVisualizer(v, objects);
            PDFRenderer.render(linkedVisualizer, bounds, file);
        } else if (file.getName().toLowerCase().endsWith(".svg")) {
            SVGRenderer.renderToFile(objects, bounds, file);
View Full Code Here

            }
        }
    }

    public static BufferedImage createMovieImage(Iterable<?> objects, Rectangle2D bounds) {
        Visualizer v = VisualizerFactory.getVisualizer(objects, ListUtils.listClass(objects));
        return createImage(objects, v, bounds, Color.WHITE);
    }
View Full Code Here

TOP

Related Classes of nodebox.client.visualizer.Visualizer

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.