Package java.awt

Examples of java.awt.Graphics2D.drawOval()


       
        // Pinto el tornillo central
        g2.setColor(Color.WHITE);
        g2.fillOval(-10, -10, 20, 20);
        g2.setColor(Color.BLACK);
        g2.drawOval(-10, -10, 20, 20);
       
        // restauro los valores iniciales
        g2.setTransform(oldt);
        g2.setPaint(oldPainter);
    }  
View Full Code Here


        return bufferedImage;
    }

    public void drawCircleAt(int x, int y) {
        Graphics2D g2d = bufferedImage.createGraphics();
        g2d.drawOval(x, y, 20, 20);
    }

    public File getImgFile() {
        return imgFile;
    }
View Full Code Here

            if (customer instanceof TimeWindowedCustomer) {
                TimeWindowedCustomer timeWindowedCustomer = (TimeWindowedCustomer) customer;
                g.setColor(TangoColorFactory.ALUMINIUM_3);
                int circleX = x - (TIME_WINDOW_DIAMETER / 2);
                int circleY = y + 5;
                g.drawOval(circleX, circleY, TIME_WINDOW_DIAMETER, TIME_WINDOW_DIAMETER);
                g.fillArc(circleX, circleY, TIME_WINDOW_DIAMETER, TIME_WINDOW_DIAMETER,
                        90 - calculateTimeWindowDegree(maximumTimeWindowTime, timeWindowedCustomer.getReadyTime()),
                        calculateTimeWindowDegree(maximumTimeWindowTime, timeWindowedCustomer.getReadyTime())
                                - calculateTimeWindowDegree(maximumTimeWindowTime, timeWindowedCustomer.getDueTime()));
                if (timeWindowedCustomer.getArrivalTime() != null) {
View Full Code Here

     
      g2.setRenderingHint( RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON );
      g2.translate( 0.5f + x, 0.5f + y )// tricky disco to blur the outlines 'bit more
      g2.setColor( colrOutline );
      g2.setStroke( strkOutline );
      g2.drawOval( x, y, 14, 14 );

      g2.setStroke( strkZeiger );
      g2.setColor( Color.black );
      g2.drawLine( x + 7, y + 7, x + 7, y + 2 );
      g2.drawLine( x + 7, y + 7, x + 10, y + 10 );
View Full Code Here

      g2.fillOval( 2, 3, 16, 16 );
      g2.setColor( colrLight );
      g2.fillOval( 5, 1, 9, 10 );
      g2.setPaint( pntArcShadow );
      g2.setStroke( strkArcShadow );
      g2.drawOval( 1, 1, 17, 17 );

      g2.setStroke( strkArcLight );
      g2.setColor( colrArcLight );
      g2.drawArc( 1, 2, 17, 17, 180, 180 );
View Full Code Here

      g2.setColor( colrArcLight );
      g2.drawArc( 1, 2, 17, 17, 180, 180 );

      g2.setColor( colrOutline );
      g2.setStroke( strkOutline );
      g2.drawOval( 1, 1, 17, 17 );
     
      g2.translate( bellyPos.getX() * 4 + 10.0, -bellyPos.getY() * 4.5 + 10.0 );
      g2.setPaint( pntBelly );
      g2.fill( shpBelly );
   
View Full Code Here

      g2.fillOval( 2, 3, 16, 16 );
      g2.setColor( colrLightD );
      g2.fillOval( 5, 1, 9, 10 );
      g2.setPaint( pntArcShadowD );
      g2.setStroke( strkArcShadow );
      g2.drawOval( 1, 1, 17, 17 );

      g2.setStroke( strkArcLight );
      g2.setColor( colrArcLightD );
      g2.drawArc( 1, 2, 17, 17, 180, 180 );
View Full Code Here

      g2.setColor( colrArcLightD );
      g2.drawArc( 1, 2, 17, 17, 180, 180 );

      g2.setColor( colrOutlineD );
      g2.setStroke( strkOutline );
      g2.drawOval( 1, 1, 17, 17 );
     
      g2.translate( bellyPos.getX() * 4 + 10.0, -bellyPos.getY() * 4.5 + 10.0 );
      g2.setPaint( pntBellyD );
      g2.fill( shpBelly );
    }
View Full Code Here

        g.drawLine(29, 13, 29, 27);

        g.setColor(gate0);
        g.drawLine(20, 35, 20, 40);
        GraphicsUtil.switchToWidth(g, 1);
        g.drawOval(18, 30, 4, 4);
        g.drawLine(10, 30, 30, 30);
        GraphicsUtil.switchToWidth(g, Wire.WIDTH);

        g.setColor(gate1);
        g.drawLine(20, 9, 20, 0);
View Full Code Here

        // gate line
        g.setColor(gate);
        if (type == TYPE_P) {
            g.drawLine(-20, m * 20, -20, m * 15);
            GraphicsUtil.switchToWidth(g, 1);
            g.drawOval(-22, m * 12 - 2, 4, 4);
        } else {
            g.drawLine(-20, m * 20, -20, m * 11);
            GraphicsUtil.switchToWidth(g, 1);
        }

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.