Examples of Circle


Examples of org.test.shape.Circle

@WebService(endpointInterface="org.apache.axis2.jaxws.polymorphic.shape.sei.PolymorphicShapePortType", wsdlLocation="test/org/apache/axis2/jaxws/polymorphic/shape/META-INF/shapes.wsdl")
public class PolymorphicShapePortTypeImpl implements PolymorphicShapePortType {

  public Shape draw(Shape request) {
    if(request instanceof Circle){
      Circle circle =(Circle) request;
            TestLogger.logger.debug("Drawing Circle on x =" + request.getXAxis() + " y=" +
                    request.getYAxis() + " With Radius =" + circle.getRadius());
      return request;
    }
    if(request instanceof Square){
      Square square =(Square) request;
            TestLogger.logger.debug("Drawing Square on x =" + request.getXAxis() + " y=" +
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.Circle

    Button circleBtn = new Button("Draw circle");
    circleBtn.setWidth("200");
    circleBtn.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        Circle circle = new Circle(0, 0, 3000000);
        circle.setFillColor("#66CC66");
        circle.setFillOpacity(0.4);
        container.add(circle);
      }
    });
    leftLayout.add(circleBtn);
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.Circle

    Button circleBtn = new Button("Draw circle");
    circleBtn.setWidth("200");
    circleBtn.addClickHandler(new ClickHandler() {

      public void onClick(ClickEvent event) {
        Circle circle = new Circle(300, 140, 30);
        circle.setFillColor("#0099CC");
        circle.setFillOpacity(0.4);
        container.add(circle);
      }
    });
    leftLayout.add(circleBtn);
View Full Code Here

Examples of org.vaadin.gwtgraphics.client.shape.Circle

        average = new Line(0, 0, 0, 0);
        average.setStrokeWidth(pathWidth);
        average.setStrokeColor(averageColor);
        canvas.add(average);

        minDot = new Circle(0, 0, 1);
        minDot.setStrokeWidth(pathWidth);
        minDot.setStrokeColor(minColor);
        canvas.add(minDot);

        maxDot = new Circle(0, 0, 1);
        maxDot.setStrokeColor(maxColor);
        canvas.add(maxDot);

        endDot = new Circle(0, 0, 1);
        endDot.setStrokeColor(valueColor);
        canvas.add(endDot);
    }
View Full Code Here

Examples of shapes.Circle

      }

  } else if (e.getButton() == MouseEvent.BUTTON1
    && this.mode == JMImagePanel.CREATE) {
      if (this.createMode == JMImagePanel.CREATE_CIRCLE) {
    circles.add(new Circle(new Point2D.Double(this.startX,
      this.startY), 0));
      } else if (this.createMode == JMImagePanel.CREATE_POLY) {
    if (this.creatingPoly) {
        polys.get(polys.size() - 1).addPoint(startX, startY);
    } else {
View Full Code Here

Examples of toxi.geom.Circle

            System.out.println("<null>");
        }
    }

    public void testCircleCircleIntersection() {
        Circle a = new Circle(100);
        Circle b = new Circle(new Vec2D(200, 100), 200);
        Vec2D[] isec = a.intersectsCircle(b);
        assertTrue(isec != null);
        assertTrue(isec[0].equals(new Vec2D(0, 100)));
        showPoints(isec);
        b.setRadius(100);
        isec = a.intersectsCircle(b);
        assertTrue(isec == null);
        b.setRadius(99).set(0, 0);
        isec = a.intersectsCircle(b);
        assertTrue(isec == null);
        b.x = 1;
        isec = a.intersectsCircle(b);
        assertTrue(isec != null);
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.