Examples of drawArc()


Examples of java.awt.Graphics2D.drawArc()

    g2.drawArc(8, 2, 5, 16, 1, 360);

    g2.drawArc(2, 8, 16, 5, 1, 360);

    g2.drawArc(8, 8, 4, 4, 1, 360);

    g2.dispose();

  }
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

      }

      g.setColor(lineColor.getValue());
      if (showText.getValue())
      {
        g.drawArc(distance,distance,w-distance*2+2,h-distance*2+2, 180-(int)minGrad.getValue(),-(int)maxGrad.getValue());
        distance=(int) (  ((double)w)/100.0 * (double)knobSizeInProzent.getValue() );
      } else distance=w/2;

      if (transparent.getValue()==false)
      {
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

        int ex = (int) (0.27f * size);
        gfx.drawOval(ex, ex, esz, esz);
        gfx.drawOval(size - 1 - esz - ex, ex, esz, esz);

        b = size / 5;
        gfx.drawArc(b, b, size - 1 - 2 * b, size - 1 - 2 * b, 200, 140);

        return img;
    }

}
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

        int ex = (int) (0.27f * size);
        gfx.drawOval(ex, ex, esz, esz);
        gfx.drawOval(size - 1 - esz - ex, ex, esz, esz);

        b = size / 5;
        gfx.drawArc(b, b, size - 1 - 2 * b, size - 1 - 2 * b, 200, 140);

        return img;
    }

}
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

                    c = yellow;
                }
                rr = transformAsistente(r);
                System.out.println(i+" "+r+" "+z);
                gr.setColor(c);
                gr.drawArc((int) (p.getX() - rr), (int) (p.getY() - rr), (int) (rr * 2), (int) (rr * 2), (int) ang0, (int) error * 2);
            }
            sim = false;
        }
    }

View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

                // dibujo un arco con el periodo seleccionado...
                int iArc = (int) (m_lPeriod / 120000L);
                g2.setColor(new Color(255, 255, 255, 100));
                g2.fillArc(-1000, -1000, 2000, 2000, 90 - iArc, iArc);
                g2.setColor(Color.DARK_GRAY);
                g2.drawArc(-1000, -1000, 2000, 2000, 90 - iArc, iArc);
            } else {
                // la aguja de las horas
                g2.setColor(Color.WHITE);
                g2.fillPolygon(new int[]{0, -35, 0, 35}, new int[]{100, 0, -600, 0}, 4);  
                g2.setColor(Color.DARK_GRAY);
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

      g2.setStroke( strkArcShadow );
      g2.drawOval( 1, 1, 17, 17 );

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

      g2.setColor( colrOutline );
      g2.setStroke( strkOutline );
      g2.drawOval( 1, 1, 17, 17 );
     
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

      g2.setStroke( strkArcShadow );
      g2.drawOval( 1, 1, 17, 17 );

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

      g2.setColor( colrOutlineD );
      g2.setStroke( strkOutline );
      g2.drawOval( 1, 1, 17, 17 );
     
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

        // Draw the input burnt if it's, er... burnt
        if (input.isBurnt()) {
            // Burnt
            // Draw the 'split ends' effect
            g2d.setColor(Color.black);
            g2d.drawArc(x, y - DisplayConstants.ARGUMENT_SPACING/2, inBoundsWidth * 2, DisplayConstants.ARGUMENT_SPACING/2, -135, 45);
            g2d.drawArc(x, y, inBoundsWidth * 2, DisplayConstants.ARGUMENT_SPACING/2, 135, -45);
           
        } else {
            // Not burnt   
            // The line
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

        if (input.isBurnt()) {
            // Burnt
            // Draw the 'split ends' effect
            g2d.setColor(Color.black);
            g2d.drawArc(x, y - DisplayConstants.ARGUMENT_SPACING/2, inBoundsWidth * 2, DisplayConstants.ARGUMENT_SPACING/2, -135, 45);
            g2d.drawArc(x, y, inBoundsWidth * 2, DisplayConstants.ARGUMENT_SPACING/2, 135, -45);
           
        } else {
            // Not burnt   
            // The line
            g2d.drawLine((int)(x + DisplayConstants.BIND_POINT_RADIUS * 2.5), y, x + inBoundsWidth, y);
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.