Examples of Oval


Examples of com.cburch.draw.shapes.Oval

    return DrawAttr.getFillAttributes(attrs.getValue(DrawAttr.PAINT_TYPE));
  }

  @Override
  public CanvasObject createShape(int x, int y, int w, int h) {
    return attrs.applyTo(new Oval(x, y, w, h));
  }
View Full Code Here

Examples of com.cburch.draw.shapes.Oval

        return DrawAttr.getFillAttributes(attrs.getValue(DrawAttr.PAINT_TYPE));
    }

    @Override
    public CanvasObject createShape(int x, int y, int w, int h) {
        return attrs.applyTo(new Oval(x, y, w, h));
    }
View Full Code Here

Examples of graphics.java.Oval

      objList2.add( obj );
    }
    GraphicsObject obj = new JavaSprite( "fenceright",
        new Point2D( 15, 31 ), new Size2D( 80, 80 ) );
   
    GraphicsObject elp1 = new Oval( new Point2D( 50, 50 ), new Size2D( 30, 16 ) );
    ((Oval)elp1).setColor( new Color( 255, 0, 0 ) );
    GraphicsObject elp2 = new Oval( new Point2D( 300, 300 ), new Size2D( 30, 16 ),
                      new Color( 255, 0, 0 ) );
    GraphicsObject cur = new BezierCurve( new Point2D( 65, 58 ), new Point2D( 315, 108 ),
                  new Point2D( 315, 208 ), new Point2D( 315, 308 ),
                  new Color( 255, 255, 0 ), 100 );
   
    Network network = new Network();
    Network.Node n1 = network.new Node( new Oval( new Point2D( 100, 100 ), new Size2D( 30, 15 ) ) );
    Network.Node n2 = network.new Node( new Oval( new Point2D( 200, 450 ), new Size2D( 30, 15 ) ) );
    Network.Node n3 = network.new Node( new Oval( new Point2D( 30, 200 ), new Size2D( 30, 15 ) ) );
    Network.Node n4 = network.new Node( new Oval( new Point2D( 500, 40 ), new Size2D( 30, 15 ) ) );
    network.addNode( n1 );
    network.addNode( n2 );
    network.addNode( n3 );
    network.addNode( n4 );
    network.addEdge( n1, n2 );
View Full Code Here

Examples of graphics.java.Oval

        private List<Node> mEdges;
        private Random mGenerator;
    }

    public void addNode( Point loc ) {
        mNodes.add( new Node( new Oval( loc, OVAL_SIZE ) ) );
    }
View Full Code Here

Examples of graphics.java.Oval

        mSprite = sprite;
    }

    public void setStartLoc( double x, double y ) {
        mStartLoc.set( x, y, 0 );
        startPoint = new Oval( mStartLoc, Sizes.get( 30, 30, 0 ) );
    }
View Full Code Here

Examples of graphics.java.Oval

        mStartLoc = p;
    }

    public void setEndLoc( double x, double y ) {
        mEndLoc.set( x, y, 0 );
        endPoint = new Oval( mEndLoc, Sizes.get( 30, 30, 0 ) );
    }
View Full Code Here

Examples of main.components.Oval

            if(jRadioButtonLine.isSelected()){
                panel.addShape(new Line(x, y, _x, _y));
            }
            if(jRadioButtonOval.isSelected()){
                if(x > _x && y > _y){
                    panel.addShape(new Oval(_x, _y, x - _x, y - _y));
                }
                else if(x > _x && y < _y){
                    panel.addShape(new Oval(_x, y, x - _x, _y - y));
                }
                else if(x < _x && y > _y){
                    panel.addShape(new Oval(x, _y, _x - x, y - _y));
                }
                else{
                    panel.addShape(new Oval(x, y, _x - x, _y - y));
                }
            }
            if(jRadioButtonRectangle.isSelected()){
                if(x > _x && y > _y){
                    panel.addShape(new Rectangle(_x, _y, x - _x, y - _y));
View Full Code Here

Examples of main.components.Oval

                     tmpLine = (Line) shape;
                     save.write(tmpLine.getX_() + "\n");
                     save.write(tmpLine.getY_() + "\n");
                }
                if(shape instanceof Oval){
                     Oval tmpOval = new Oval();
                     tmpOval = (Oval) shape;
                     save.write(tmpOval.getWidth()+ "\n");
                     save.write(tmpOval.getHeight()+ "\n");
                }
                if(shape instanceof Rectangle){
                     Rectangle tmpRect = new Rectangle();
                     tmpRect = (Rectangle) shape;
                     save.write(tmpRect.getWidth()+ "\n");
View Full Code Here

Examples of main.components.Oval

                    case "main.components.Oval":
                        tmp_x = Integer.parseInt(reader.readLine());
                        tmp_y = Integer.parseInt(reader.readLine());
                        tmp_width = Integer.parseInt(reader.readLine());
                        tmp_height = (Integer.parseInt(reader.readLine()));
                        panel.addShape(new Oval(tmp_x, tmp_y, tmp_width, tmp_height));
                        break;
                    case "main.components.Line":
                        tmp_x = Integer.parseInt(reader.readLine());
                        tmp_y = Integer.parseInt(reader.readLine());
                        tmp_width = Integer.parseInt(reader.readLine());
View Full Code Here

Examples of net.sf.arianne.marboard.client.entity.shape.Oval

    } else if (rpclass.equals("rectangle")) {
      return new Rectangle(rpobject);
    } else if (rpclass.equals("straight_line")) {
      return new StraightLine(rpobject);
    } else if (rpclass.equals("oval")) {
      return new Oval(rpobject);
    } else {
      logger.error("Unknown Entity class " + rpclass + ": " + rpobject);
      return new Entity(rpobject);
    }
  }
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.