Exemple #1
0
 /**
  * Fills the specified polygon using the current {@code paint}.
  *
  * @param xPoints the x-points.
  * @param yPoints the y-points.
  * @param nPoints the number of points to use for the polygon.
  * @see #drawPolygon(int[], int[], int)
  */
 @Override
 public void fillPolygon(int[] xPoints, int[] yPoints, int nPoints) {
   GeneralPath p = GraphicsUtils.createPolygon(xPoints, yPoints, nPoints, true);
   fill(p);
 }
Exemple #2
0
 /**
  * Draws the rendered image.
  *
  * @param img the image.
  * @param xform the transform.
  */
 @Override
 public void drawRenderedImage(RenderedImage img, AffineTransform xform) {
   BufferedImage bi = GraphicsUtils.convertRenderedImage(img);
   drawImage(bi, xform, null);
 }
Exemple #3
0
 /**
  * Draws the specified multi-segment line using the current {@code paint} and {@code stroke}.
  *
  * @param xPoints the x-points.
  * @param yPoints the y-points.
  * @param nPoints the number of points to use for the polyline.
  */
 @Override
 public void drawPolyline(int[] xPoints, int[] yPoints, int nPoints) {
   GeneralPath p = GraphicsUtils.createPolygon(xPoints, yPoints, nPoints, false);
   draw(p);
 }