|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.toolbox.PathFigure
uk.ac.starlink.diva.DrawPathFigure
uk.ac.starlink.diva.InterpolatedCurveFigure
public class InterpolatedCurveFigure
A figure that displays a InterpolatedCurve that can have its vertices moved.
DrawPathFigure
Field Summary | |
---|---|
protected InterpolatedCurve2D |
curve
The InterpolatedCurve that we're using. |
Fields inherited from class uk.ac.starlink.diva.DrawPathFigure |
---|
listeners, transformFreely |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class uk.ac.starlink.diva.DrawPathFigure |
---|
addListener, fireChanged, fireCreated, fireRemoved, getFillPaint, isTransformFreely, removeListener, setFillPaint, setTransformFreely, setVisible |
Methods inherited from class diva.canvas.toolbox.PathFigure |
---|
getBounds, getComposite, getDashArray, getLineWidth, getShape, getStroke, getStrokePaint, paint, setComposite, setDashArray, setLineWidth, setStroke, setStrokePaint |
Methods inherited from class diva.canvas.AbstractFigure |
---|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface uk.ac.starlink.diva.DrawFigure |
---|
getComposite, getLineWidth, getStrokePaint, setComposite, setLineWidth, setStrokePaint |
Methods inherited from interface diva.canvas.Figure |
---|
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, intersects, setInteractor, setParent, setToolTipText |
Methods inherited from interface diva.canvas.VisibleComponent |
---|
isVisible, paint, paint |
Methods inherited from interface diva.canvas.CanvasComponent |
---|
getTransformContext, repaint, repaint |
Methods inherited from interface diva.util.UserObjectContainer |
---|
getUserObject, setUserObject |
Field Detail |
---|
protected InterpolatedCurve2D curve
Constructor Detail |
---|
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)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |