public class DrawPolygonFigure extends DrawBasicFigure
DrawBasicFigure| Modifier and Type | Field and Description |
|---|---|
protected Polygon2D.Double |
polygon
The Polygon that we're using.
|
listeners, transformFreely| Constructor and Description |
|---|
DrawPolygonFigure(double x,
double y,
Paint fill,
float lineWidth)
Create a new polyline with the given origin, colour and linewidth.
|
DrawPolygonFigure(double x,
double y,
Paint fill,
Paint outline,
float lineWidth,
AlphaComposite composite)
Create a new polygon with the given origin and colour.
|
DrawPolygonFigure(Polygon2D poly)
Create a new polygon using the given polygon shape.
|
DrawPolygonFigure(Polygon2D poly,
Paint fill,
Paint outline,
float lineWidth,
AlphaComposite composite)
Create a new polygon using the given polygon shape, colour,
fill and linewidth.
|
| Modifier and Type | Method and Description |
|---|---|
Polygon2D.Double |
createPolygon(double x,
double y)
Create a polygon and position it at the origin.
|
addListener, fireChanged, fireCreated, fireRemoved, isTransformFreely, removeListener, setTransformFreely, setVisible, transform, translategetBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getShape, getStrokePaint, hit, paint, setComposite, setDashArray, setFillPaint, setLineWidth, setShape, setStroke, setStrokePaintcontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObjectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComposite, getFillPaint, getLineWidth, getStrokePaint, setComposite, setFillPaint, setLineWidth, setShape, setStrokePaintcontains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipTextisVisible, paint, paintgetTransformContext, repaint, repaintgetUserObject, setUserObjectprotected Polygon2D.Double polygon
public DrawPolygonFigure(Polygon2D poly)
public DrawPolygonFigure(Polygon2D poly, Paint fill, Paint outline, float lineWidth, AlphaComposite composite)
public DrawPolygonFigure(double x,
double y,
Paint fill,
Paint outline,
float lineWidth,
AlphaComposite composite)
public DrawPolygonFigure(double x,
double y,
Paint fill,
float lineWidth)
public Polygon2D.Double createPolygon(double x, double y)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.