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, translate
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getShape, getStrokePaint, hit, paint, setComposite, setDashArray, setFillPaint, setLineWidth, setShape, setStroke, setStrokePaint
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getComposite, getFillPaint, getLineWidth, getStrokePaint, setComposite, setFillPaint, setLineWidth, setShape, setStrokePaint
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText
isVisible, paint, paint
getTransformContext, repaint, repaint
getUserObject, setUserObject
protected 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 © 2024 Central Laboratory of the Research Councils. All Rights Reserved.