Package gwt.g2d.client.graphics.shapes

Examples of gwt.g2d.client.graphics.shapes.CircleShape


      public void onSuccess(ImageElementResource resource) {
        CanvasPattern pattern = getPrimarySurface().createPattern(
            resource.getImage(), PatternRepetition.REPEAT);
        getPrimarySurface().setFillStyle(pattern)
            .fillRectangle(0, 0, 600, 200)
            .fillShape(new CircleShape(100, 300, 100))
            .setFont("60px sans-serif")
            .setTextAlign(TextAlign.CENTER)
            .setTextBaseline(TextBaseline.MIDDLE)
            .fillText("Hello World", 420, 300);
      }
View Full Code Here


    matrix.setIdentity();
    surface.setTransform(matrix);

    surface.fillRectangle(0, 0, size, size)
        .setTransform(matrix.mutableTranslate(size / 2, size / 2))
        .clipShape(new CircleShape(0, 0, size / 2.0 * .8));

    Gradient gradient = new LinearGradient(0, -size / 2, 0, size / 2)
        .addColorStop(0, new Color(35, 34, 86))
        .addColorStop(1, new Color(20, 55, 120));
   
View Full Code Here

TOP

Related Classes of gwt.g2d.client.graphics.shapes.CircleShape

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.