Package playn.core

Examples of playn.core.Canvas.clear()


    @Override public void layout () {
        super.layout();
        // capture the new layout
        Canvas canvas = _image.get().canvas();
        canvas.clear();
        Layers.capture(layer, canvas);
    }

    /**
     * Wraps this captured root in a Widget, using the root's image for size computation and
View Full Code Here


        if (_image.width() < width || _image.height() < height) {
            layer.setImage(_image = graphics().createImage(width, height));
        }
        // clear our image and render our rows
        Canvas canvas = _image.canvas();
        canvas.clear();
        canvas.setFillColor(_bgColor).fillRect(0, 0, width, height);
        canvas.setStrokeColor(_textColor).setFillColor(_textColor);
        float x = GAP, y = GAP, valueX = labelWidth+2*GAP;
        for (Row row : _rows) {
            row.render(canvas, x, y, valueX);
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.