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, translate
getBounds, getComposite, getDashArray, getLineWidth, getShape, getStroke, getStrokePaint, hit, paint, setComposite, setDashArray, 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, getLineWidth, getStrokePaint, setComposite, 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 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 © 2024 Central Laboratory of the Research Councils. All Rights Reserved.