|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.AbstractFigureContainer
diva.canvas.FigureDecorator
diva.canvas.interactor.Manipulator
uk.ac.starlink.diva.InterpolatedCurveManipulator
public class InterpolatedCurveManipulator
A manipulator for InterpolatedCurveFigure figures. This attaches handles to the vertices of the curve and allows them to be moved, the corresponding InterpolatedCurveFigure should then re-draw itself with a new interpolation.
Field Summary | |
---|---|
protected InterpolatedCurveFigure |
curve
The InterpolatedCurveFigure. |
protected InterpolatedCurve2D |
curve2d
The InterpolatedCurve2D. |
Constructor Summary | |
---|---|
InterpolatedCurveManipulator()
Construct a new manipulator that uses rectangular grab-handles. |
|
InterpolatedCurveManipulator(GrabHandleFactory f)
Construct a new manipulator using the given grab-handle factory. |
Method Summary | |
---|---|
FigureDecorator |
newInstance(Figure f)
Create a new instance of this manipulator. |
protected void |
orderVertices()
Make the X vertex coordinates monotonic and re-order the Vertex instances as appropriate. |
void |
paint(Graphics2D g2d)
Paint the manipulator. |
void |
refresh()
Refresh the underlying InterpolatedCurveFigure. |
void |
setChild(Figure f)
Set the child figure. |
Methods inherited from class diva.canvas.interactor.Manipulator |
---|
addGrabHandle, clearGrabHandles, getBounds, getGrabHandleFactory, getHandleInteractor, isRepainting, pick, relocateGrabHandles, removeGrabHandle, repaint, repaint, repaintAlready, setGrabHandleFactory, setHandleFilter, setHandleInteractor, setRepainting |
Methods inherited from class diva.canvas.FigureDecorator |
---|
add, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, hit, remove, replaceChild, transform |
Methods inherited from class diva.canvas.AbstractFigureContainer |
---|
decorate, pick, translate, undecorate |
Methods inherited from class diva.canvas.AbstractFigure |
---|
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisible |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface diva.canvas.VisibleComponent |
---|
isVisible, paint, setVisible |
Methods inherited from interface diva.canvas.CanvasComponent |
---|
getParent, getTransformContext |
Field Detail |
---|
protected InterpolatedCurveFigure curve
protected InterpolatedCurve2D curve2d
Constructor Detail |
---|
public InterpolatedCurveManipulator()
public InterpolatedCurveManipulator(GrabHandleFactory f)
Method Detail |
---|
public FigureDecorator newInstance(Figure f)
newInstance
in class FigureDecorator
public void refresh()
refresh
in class Manipulator
public void paint(Graphics2D g2d)
Manipulator
paint
in interface VisibleComponent
paint
in class Manipulator
public void setChild(Figure f)
setChild
in class FigureDecorator
protected void orderVertices()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |