Package java.awt

Examples of java.awt.Graphics.drawOval()


  //
  @Override
  public void paintGhost(InstancePainter painter) {
    Graphics g = painter.getGraphics();
    Bounds bds = painter.getOffsetBounds();
    g.drawOval(bds.getX() + 1, bds.getY() + 1,
      bds.getWidth() - 1, bds.getHeight() - 1);
  }

  @Override
  public void paintInstance(InstancePainter painter) {
View Full Code Here


    int y = bds.getY();
    g.setColor(Color.WHITE);
    g.fillRect(x + 5, y + 5, bds.getWidth() - 10, bds.getHeight() - 10);
    g.setColor(Color.GRAY);
    if (value.getWidth() <= 1) {
      g.drawOval(x + 1, y + 1,
        bds.getWidth() - 2, bds.getHeight() - 2);
    } else {
      g.drawRoundRect(x + 1, y + 1,
        bds.getWidth() - 2, bds.getHeight() - 2, 6, 6);
    }
View Full Code Here

            gr.setColor(new Color(upolera));
            gr.fillArc(3, 3, 13, 13, 0, 180);
            gr.setColor(new Color(upantalon));
            gr.fillArc(3, 3, 13, 13, 180, 180);
            gr.setColor(new Color(ufranja));
            gr.drawOval(2, 2, 15, 15);
            imgLoc = buf.getScaledInstance(20, 20, Image.SCALE_SMOOTH);
        }
        for (int k = 0; k < 7; k++) {
            BufferedImage buf = new BufferedImage(20, 20, BufferedImage.TYPE_INT_ARGB);
            buf.getGraphics().drawImage(imgLocal[k], 0, 0, null);
View Full Code Here

            gr.setColor(impl.getColorCamiseta());
            gr.fillArc(4, 4, 11, 11, 0, 180);
            gr.setColor(impl.getColorPantalon());
            gr.fillArc(4, 4, 11, 11, 180, 180);
            gr.setColor(impl.getColorFranja());
            gr.drawOval(2, 2, 15, 15);
            imgVis = buf.getScaledInstance(20, 20, Image.SCALE_SMOOTH);
        }
        for (int k = 0; k < 7; k++) {
            BufferedImage buf = new BufferedImage(20, 20, BufferedImage.TYPE_INT_ARGB);
            buf.getGraphics().drawImage(imgVisita[k], 0, 0, null);
View Full Code Here

        Graphics g = painter.getGraphics();
        int[] xp = new int[] { 8, 0, 0, 8 };
        int[] yp = new int[] { 2, 2, 18, 18 };
        g.drawPolyline(xp, yp, 4);
        GraphicsUtil.drawCenteredArc(g, 8, 10, 8, -90, 180);
        g.drawOval(16, 8, 4, 4);
    }

    @Override
    protected void paintShape(InstancePainter painter, int width, int height) {
        PainterShaped.paintAnd(painter, width, height);
View Full Code Here

        Graphics g = painter.getGraphics();
        GraphicsUtil.drawCenteredArc(g,   0, - 5, 22, -9053);
        GraphicsUtil.drawCenteredArc(g,   0, 23, 2290, -53);
        GraphicsUtil.drawCenteredArc(g,  -89, 16, -30, 60);
        GraphicsUtil.drawCenteredArc(g, -109, 16, -30, 60);
        g.drawOval(16, 8, 4, 4);
    }

    @Override
    protected void paintShape(InstancePainter painter, int width, int height) {
        PainterShaped.paintXor(painter, width, height);
View Full Code Here

    public void paintIconShaped(InstancePainter painter) {
        Graphics g = painter.getGraphics();
        GraphicsUtil.drawCenteredArc(g,   0, -5, 22, -9053);
        GraphicsUtil.drawCenteredArc(g,   0, 23, 2290, -53);
        GraphicsUtil.drawCenteredArc(g, -129, 16, -30, 60);
        g.drawOval(16, 8, 4, 4);
    }

    @Override
    protected void paintShape(InstancePainter painter, int width, int height) {
        PainterShaped.paintOr(painter, width, height);
View Full Code Here

    protected void paintIconRectangular(InstancePainter painter) {
        Graphics g = painter.getGraphics();
        g.drawRect(1, 2, 16, 16);
        if (negateOutput) {
            g.drawOval(16, 8, 4, 4);
        }

        String label = getRectangularLabel(painter.getAttributeSet());
        GraphicsUtil.drawCenteredText(g, label, 9, 8);
    }
View Full Code Here

            g.setColor(Color.BLACK);
            int[] xp = new int[] { x + 15, x + 1, x + 1, x + 15 };
            int[] yp = new int[] { 10,     3,     17,    10 };
            g.drawPolyline(xp, yp, 4);
            if (isInverter) {
                g.drawOval(x + 13, 8, 4, 4);
            }

            g.setColor(Value.FALSE_COLOR);
            g.drawLine(x + 8, 14, x + 8, 18);
        }
View Full Code Here

    //
    @Override
    public void paintGhost(InstancePainter painter) {
        Graphics g = painter.getGraphics();
        Bounds bds = painter.getOffsetBounds();
        g.drawOval(bds.getX() + 1, bds.getY() + 1,
            bds.getWidth() - 1, bds.getHeight() - 1);
    }

    @Override
    public void paintInstance(InstancePainter painter) {
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.