Package nodebox.graphics

Examples of nodebox.graphics.Grob


    public Rectangle2D getBounds(Iterable<?> objects) {
        Rectangle2D.Double bounds = new Rectangle2D.Double();
        for (Object o : objects) {
            if (o instanceof Grob) {
                Grob grob = (Grob) o;
                bounds.add(grob.getBounds().getRectangle2D());
            } else if (o instanceof Iterable) {
                bounds.add(getBounds((Iterable<?>) o));
            }
        }
        // Make sure the width and height or greater than zero.
View Full Code Here

TOP

Related Classes of nodebox.graphics.Grob

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.