public class InterpolatedCurveFigure extends DrawPathFigure
DrawPathFigure
Modifier and Type | Field and Description |
---|---|
protected InterpolatedCurve2D |
curve
The InterpolatedCurve that we're using.
|
listeners, transformFreely
Constructor and Description |
---|
InterpolatedCurveFigure(InterpolatedCurve2D curve)
Copy constructor.
|
InterpolatedCurveFigure(InterpolatedCurve2D curve,
Paint outline,
float lineWidth,
AlphaComposite composite)
Copy constructor, but using the given shape, colour, linewidth and
composite.
|
InterpolatedCurveFigure(Interpolator interpolator,
double x,
double y,
Paint outline)
Create a new instance with the given origin and colour.
|
InterpolatedCurveFigure(Interpolator interpolator,
double x,
double y,
Paint outline,
float lineWidth,
AlphaComposite composite)
Create a new instance with the given origin, colour and linewidth.
|
Modifier and Type | Method and Description |
---|---|
InterpolatedCurve2D |
createInterpolatedCurve(Interpolator interpolator,
double x,
double y)
Create an instance and position it at the origin.
|
boolean |
hit(Rectangle2D r)
Test if this figure intersects the given rectangle.
|
void |
setShape(Shape shape)
Set the shape of this figure.
|
void |
transform(AffineTransform at)
Transform the figure with the supplied transform.
|
void |
translate(double x,
double y)
Translate the figure with by the given distance.
|
addListener, fireChanged, fireCreated, fireRemoved, getFillPaint, isTransformFreely, removeListener, setFillPaint, setTransformFreely, setVisible
getBounds, getComposite, getDashArray, getLineWidth, getShape, getStroke, getStrokePaint, paint, setComposite, setDashArray, setLineWidth, 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, setStrokePaint
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, intersects, setInteractor, setParent, setToolTipText
isVisible, paint, paint
getTransformContext, repaint, repaint
getUserObject, setUserObject
protected InterpolatedCurve2D curve
public InterpolatedCurveFigure(InterpolatedCurve2D curve)
public InterpolatedCurveFigure(InterpolatedCurve2D curve, Paint outline, float lineWidth, AlphaComposite composite)
public InterpolatedCurveFigure(Interpolator interpolator, double x, double y, Paint outline)
public InterpolatedCurveFigure(Interpolator interpolator, double x, double y, Paint outline, float lineWidth, AlphaComposite composite)
public InterpolatedCurve2D createInterpolatedCurve(Interpolator interpolator, double x, double y)
public void transform(AffineTransform at)
DrawPathFigure
transform
in interface Figure
transform
in class DrawPathFigure
public void translate(double x, double y)
DrawPathFigure
translate
in interface Figure
translate
in class DrawPathFigure
public boolean hit(Rectangle2D r)
PathFigure
hit
in interface Figure
hit
in class PathFigure
public void setShape(Shape shape)
PathFigure
setShape
in interface ShapedFigure
setShape
in interface DrawFigure
setShape
in class PathFigure
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.