public class PolygonFiller
extends java.lang.Object
Constructor and Description |
---|
PolygonFiller()
Constructs a PolygonFiller.
|
PolygonFiller(float[] xf,
float[] yf,
int n,
float xOffset,
float yOffset)
Constructs a PolygonFiller using the specified polygon with floating-point coordinates.
|
PolygonFiller(int[] x,
int[] y,
int n)
Constructs a PolygonFiller using the specified polygon with integer coordinates.
|
Modifier and Type | Method and Description |
---|---|
void |
fill(ImageProcessor ip,
java.awt.Rectangle r)
Fills the polygon using the ImageProcessor's current drawing color.
|
ImageProcessor |
getMask(int width,
int height)
Returns a byte mask containing a filled version of the polygon.
|
void |
setPolygon(float[] xf,
float[] yf,
int n,
float xOffset,
float yOffset)
Specifies the polygon to be filled in case of float coordinates.
|
void |
setPolygon(int[] x,
int[] y,
int n)
Specifies the polygon to be filled.
|
public PolygonFiller()
public PolygonFiller(int[] x, int[] y, int n)
public PolygonFiller(float[] xf, float[] yf, int n, float xOffset, float yOffset)
public void setPolygon(int[] x, int[] y, int n)
public void setPolygon(float[] xf, float[] yf, int n, float xOffset, float yOffset)
public void fill(ImageProcessor ip, java.awt.Rectangle r)
public ImageProcessor getMask(int width, int height)