Examples of drawCircle()


Examples of dwlab.shapes.maps.DoubleMap.drawCircle()

    main();
  }
 
  public static void main() {
    DoubleMap sourceMap = new DoubleMap( mapSize, mapSize );
    sourceMap.drawCircle( mapSize * 0.375d, mapSize * 0.375d, mapSize * 0.35d, 0.6d );
    draw( sourceMap.toNewImage(), "Source map" );

    DoubleMap targetMap = new DoubleMap( mapSize, mapSize );
    targetMap.drawCircle( mapSize * 0.625d, mapSize * 0.625d, mapSize * 0.35d, 0.8d );
    draw( targetMap.toNewImage(), "Target map" );
View Full Code Here

Examples of dwlab.shapes.maps.DoubleMap.drawCircle()

    DoubleMap sourceMap = new DoubleMap( mapSize, mapSize );
    sourceMap.drawCircle( mapSize * 0.375d, mapSize * 0.375d, mapSize * 0.35d, 0.6d );
    draw( sourceMap.toNewImage(), "Source map" );

    DoubleMap targetMap = new DoubleMap( mapSize, mapSize );
    targetMap.drawCircle( mapSize * 0.625d, mapSize * 0.625d, mapSize * 0.35d, 0.8d );
    draw( targetMap.toNewImage(), "Target map" );

    DoubleMap doubleMap = new DoubleMap( mapSize, mapSize );
    doubleMap.paste( targetMap );
    doubleMap.paste( sourceMap, 0, 0, DoubleMap.PasteMode.ADD );
View Full Code Here

Examples of gwt.g2d.client.graphics.DirectShapeRenderer.drawCircle()

        .drawEllipse(20, 100, 180, 100)
        .closePath()
        .stroke();
    shapeRenderer.beginPath();
    for (int i = 0; i < 8; i++) {
      shapeRenderer.drawCircle(80 + i * 12, 50, 1);
    }
    shapeRenderer.closePath().fill();
  }
 
  /**
 
View Full Code Here

Examples of gwt.g2d.client.graphics.shapes.ShapeBuilder.drawCircle()

    surface.strokeShape(new ShapeBuilder()
        .drawEllipse(20, 100, 180, 100)
        .build());
    ShapeBuilder dotShapeBuilder = new ShapeBuilder();
    for (int i = 0; i < 8; i++) {
      dotShapeBuilder.drawCircle(80 + i * 12, 50, 1);
    }
    surface.fillShape(dotShapeBuilder.build());
  }
}
View Full Code Here

Examples of org.antlr.works.visualization.graphics.GContext.drawCircle()

    public static void draw(GNode node) {
        GContext context = node.getContext();
        context.setColor(context.nodeColor);
        float r = context.getPixelNodeWidth()/2;
        context.drawCircle(node.getX()+r, node.getY(), r, true);
        context.drawString(context.getBoxFont(), node.state.toString(), node.getX()+r, node.getY(), GContext.ALIGN_CENTER);
    }

    public static boolean nodeContainsPoint(GNode node, Point p) {
        float nr = node.getContext().getPixelNodeWidth()/2;
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.