Package tiled.mapeditor.brush

Examples of tiled.mapeditor.brush.Brush.drawPreview()


        while (itr.hasNext()) {
            Brush brush = (Brush) itr.next();
            Rectangle bb = brush.getBounds();
            float o = maxWidth / 2.0f - bb.width / 2.0f;
            g.translate((int) o, (int) o);
            brush.drawPreview((Graphics2D) g, new Dimension(maxWidth, maxWidth), null);
            g.translate((int) -o, (int) -o);

            if (brush == selectedBrush) {
                g.drawRect(0, 0, maxWidth, maxWidth);
            }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.