public class InterpolatedCurveManipulator extends Manipulator
Modifier and Type | Field and Description |
---|---|
protected InterpolatedCurveFigure |
curve
The InterpolatedCurveFigure.
|
protected InterpolatedCurve2D |
curve2d
The InterpolatedCurve2D.
|
Constructor and Description |
---|
InterpolatedCurveManipulator()
Construct a new manipulator that uses rectangular grab-handles.
|
InterpolatedCurveManipulator(GrabHandleFactory f)
Construct a new manipulator using the given grab-handle factory.
|
Modifier and Type | Method and Description |
---|---|
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.
|
addGrabHandle, clearGrabHandles, getBounds, getGrabHandleFactory, getHandleInteractor, isRepainting, pick, relocateGrabHandles, removeGrabHandle, repaint, repaint, repaintAlready, setGrabHandleFactory, setHandleFilter, setHandleInteractor, setRepainting
add, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, hit, remove, replaceChild, transform
decorate, pick, translate, undecorate
contains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isVisible, paint, setVisible
getParent, getTransformContext
protected InterpolatedCurveFigure curve
protected InterpolatedCurve2D curve2d
public InterpolatedCurveManipulator()
public InterpolatedCurveManipulator(GrabHandleFactory f)
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()
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.