Examples of drawArc()


Examples of java.awt.Graphics2D.drawArc()

            g.setRenderingHint(RenderingHints.KEY_TEXT_ANTIALIASING, RenderingHints.VALUE_TEXT_ANTIALIAS_ON);
            g.setFont(font.deriveFont(Font.BOLD, getIconWidth()*3/4));
            g.setColor(Color.green.darker());
            final int SW = Math.max(getIconWidth()/10, 4);
            g.setStroke(new BasicStroke(SW));
            g.drawArc(SW/2, SW/2, getIconWidth()-SW-1, getIconHeight()-SW-1, 0, 360);
            Rectangle2D bounds =
                font.getStringBounds("i", g.getFontRenderContext());
            g.drawString("i", Math.round((getIconWidth() - bounds.getWidth())/2 - getIconWidth()/12),
                         SW/2 + Math.round((getIconHeight()-bounds.getHeight())/2 - bounds.getY() + getIconHeight()/8));
            g.dispose();
View Full Code Here

Examples of java.awt.Graphics2D.drawArc()

        g.fillArc(circ_x, circ_y, circ_w, circ_w, curr_angle, 360 - curr_angle);
        drawLegendLine(g, 5, height - 5 - 15 * i, fillRest.getPieceName()+" ("+fillRest.getFractionPercent()+" %)", fillRest.getColor());

        //draw border around the circle
        g.setColor(Color.decode("0x"+COL_BORDER));
        g.drawArc(circ_x, circ_y, circ_w, circ_w, 0, 360);

        peerloadPictureDate = System.currentTimeMillis();
    }

    private static void drawLegendLine(final Graphics2D g, final int x, final int y, final String caption, final Color item_color) {
View Full Code Here

Examples of org.eclipse.swt.graphics.GC.drawArc()

          Color color = e.display.getSystemColor(CanvasTab.colors[paintCount % CanvasTab.colors.length]);
          gc.setBackground(color);
          gc.fillRectangle(e.x, e.y, e.width, e.height);
        }
        Point size = canvas.getSize();
        gc.drawArc(cx + 1, cy + 1, size.x - 2, size.y - 2, 0, 360);
        gc.drawRectangle(cx + (size.x - 10) / 2, cy + (size.y - 10) / 2, 10, 10);
        Point extent = gc.textExtent(CanvasTab.canvasString);
        gc.drawString(CanvasTab.canvasString, cx + (size.x - extent.x) / 2, cy - extent.y + (size.y - 10) / 2,
            true);
      }
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawArc()

          composer.drawRectangle(arcFrame);
          composer.stroke();
          composer.end();

          // Draw the arc!
          composer.drawArc(arcFrame,startAngle,endAngle);
          composer.stroke();

          endAngle += angleStep;
          switch(rowIndex)
          {
View Full Code Here

Examples of org.pdfclown.documents.contents.composition.PrimitiveComposer.drawArc()

            case Center:
              startArcAngle = 180;
              break;
          }

          composer.drawArc(
            new Rectangle2D.Double(
              x-10,
              y-10,
              20,
              20
View Full Code Here

Examples of railo.runtime.img.Image.drawArc()

    if (width < 0)
        throw new FunctionException(pc,"ImageDrawArc",3,"width","width must contain a none negative value");
    if (height < 0)
        throw new FunctionException(pc,"ImageDrawArc",4,"height","width must contain a none negative value");
   
    img.drawArc((int)x, (int)y, (int)width, (int)height, (int)startAngle, (int)arcAngle, filled);
    return 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.