public class DrawFreehandFigure extends DrawPathFigure
DrawPathFigure| Modifier and Type | Field and Description |
|---|---|
protected Polyline2D.Double |
polyline
The Polyline that we're using.
|
listeners, transformFreely| Constructor and Description |
|---|
DrawFreehandFigure(double x,
double y,
Paint fill)
Create a new polyline with the given origin and colour.
|
DrawFreehandFigure(double x,
double y,
Paint fill,
float lineWidth,
AlphaComposite composite)
Create a new rectangle with the given origin, colour and linewidth.
|
DrawFreehandFigure(Polyline2D poly)
Create a new polyline using the given polyline shape.
|
DrawFreehandFigure(Polyline2D poly,
Paint fill,
float lineWidth,
AlphaComposite composite)
Create a new polyline using the given polyline shape, colour
and linewidth.
|
| Modifier and Type | Method and Description |
|---|---|
Polyline2D.Double |
createFreehand(double x,
double y)
Create a polyline and position it at the origin.
|
addListener, fireChanged, fireCreated, fireRemoved, getFillPaint, isTransformFreely, removeListener, setFillPaint, setTransformFreely, setVisible, transform, translategetBounds, getComposite, getDashArray, getLineWidth, getShape, getStroke, getStrokePaint, hit, paint, setComposite, setDashArray, 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, getLineWidth, getStrokePaint, setComposite, setLineWidth, setShape, setStrokePaintcontains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipTextisVisible, paint, paintgetTransformContext, repaint, repaintgetUserObject, setUserObjectprotected Polyline2D.Double polyline
public DrawFreehandFigure(Polyline2D poly)
public DrawFreehandFigure(Polyline2D poly, Paint fill, float lineWidth, AlphaComposite composite)
public DrawFreehandFigure(double x,
double y,
Paint fill)
public DrawFreehandFigure(double x,
double y,
Paint fill,
float lineWidth,
AlphaComposite composite)
public Polyline2D.Double createFreehand(double x, double y)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.