Class Polygon
- java.lang.Object
-
- com.sksamuel.scrimage.canvas.drawables.Polygon
-
-
Constructor Summary
Constructors Constructor Description Polygon(java.util.List<java.awt.Point> points, GraphicsContext context)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphicsContext
context()
void
draw(RichGraphics2D g)
static Polygon
rectangle(int x, int y, int width, int height, GraphicsContext context)
FilledPolygon
toFilled()
Polyline
toLine()
-
-
-
Constructor Detail
-
Polygon
public Polygon(java.util.List<java.awt.Point> points, GraphicsContext context)
-
-
Method Detail
-
rectangle
public static Polygon rectangle(int x, int y, int width, int height, GraphicsContext context)
-
draw
public void draw(RichGraphics2D g)
-
toFilled
public FilledPolygon toFilled()
-
toLine
public Polyline toLine()
-
context
public GraphicsContext context()
-
-