Package java.awt

Examples of java.awt.Graphics2D.fill()


        final Rectangle rect = new Rectangle(0, 0, image.getWidth(), image.getHeight());
        // prepare the image by filling it ...
        final Graphics2D g2 = image.createGraphics();
        g2.setPaint(Color.white);
        g2.fill(rect);

        final PageDrawable pageDrawable = prc.getPageDrawable(i);
        pageDrawable.draw(g2, rect);
        g2.dispose();
View Full Code Here


    }

    if (lastColor != null)
    {
      g2.setColor(lastColor);
      g2.fill(new Ellipse2D.Double
          (lastX - LAST_POINT_RADIUS, lastY - LAST_POINT_RADIUS, LAST_POINT_DIAMETER, LAST_POINT_DIAMETER));
    }
    g2.dispose();

  }
View Full Code Here

      {
        // mixed values, middle aligned
        //{-1|-2|-3|-4|0|1|2|3|4|5}
        bar.setRect(x, h < 0 ? axe : axe - h, barWidth, h < 0 ? -h : h);
      }
      g.fill(bar);
      x += (barWidth + spacing1);
    }

    g.dispose();
  }
View Full Code Here

    if (isOpaque() || state.getBkMode() != BrushConstants.TRANSPARENT)
    {
      final Rectangle background = new Rectangle(x, y - metrics.getAscent(), textWidth, metrics.getHeight());
      graphics.setColor(state.getBkColor());
      graphics.fill(background);
      graphics.setColor(state.getTextColor());
    }
    // System.out.println("X: " + x + " Y: " + p.y + " " + calcDeltaY(state.getHorizontalTextAlignment(), metrics));

    final Graphics2D g2 = (Graphics2D) graphics.create();
View Full Code Here

    final Rectangle rec = scaleRect(regio.getBounds());

    if (brush.isVisible())
    {
      state.preparePaint();
      graph.fill(rec);
      state.postPaint();
    }
  }

  /**
 
View Full Code Here

    final MfDcState state = file.getCurrentState();

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(arc);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
View Full Code Here

    final MfDcState state = file.getCurrentState();

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(polygon);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
View Full Code Here

    final MfDcState state = file.getCurrentState();

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(arc);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
View Full Code Here

    }

    if (state.getLogBrush().isVisible())
    {
      state.preparePaint();
      graph.fill(genPath);
      state.postPaint();
    }
    if (state.getLogPen().isVisible())
    {
      state.prepareDraw();
View Full Code Here

  {
    final Graphics2D g2 = (Graphics2D) graphics.create();
    if (isDrawPageBackground())
    {
      g2.setPaint(Color.white);
      g2.fill(area);
    }
    g2.translate(-area.getX(), -area.getY());

    try
    {
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.