public abstract class Manipulator extends FigureDecorator
| Constructor and Description |
|---|
Manipulator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addGrabHandle(GrabHandle gh)
Add a grab-handle to this manipulator's collection of grab-handles.
|
void |
clearGrabHandles()
Clear all grab-handles.
|
Rectangle2D |
getBounds()
Get the bounds.
|
GrabHandleFactory |
getGrabHandleFactory()
Get the grab handle factory.
|
DragInteractor |
getHandleInteractor()
Get the grab handle interactor.
|
boolean |
isRepainting()
Test if this manipulator is in the process of repainting
itself and its child.
|
void |
paint(Graphics2D g)
Paint the manipulator.
|
Figure |
pick(Rectangle2D r)
Given a rectangle, return the top-most thing that hits
it.
|
abstract void |
refresh()
Refresh the geometry.
|
void |
relocateGrabHandles()
Relocate grab-handles to their correct positions.
|
void |
removeGrabHandle(GrabHandle gh)
Remove a grab-handle from this manipulator's
collection of grab-handles.
|
void |
repaint()
Request a repaint of the manipulator and child.
|
void |
repaint(DamageRegion d)
Receive repaint notification.
|
void |
repaintAlready()
Request a repaint of the manipulator and child.
|
void |
setGrabHandleFactory(GrabHandleFactory factory)
Set the grab handle factory.
|
void |
setHandleFilter(MouseFilter filter)
Set the mouse filter that is set in the grab handle interactor.
|
void |
setHandleInteractor(DragInteractor interactor)
Set the grab handle interactor.
|
void |
setRepainting(boolean repainting)
Set the repainting flag.
|
add, contains, figures, figuresFromBack, figuresFromFront, getChild, getContainer, getDecoratedFigure, getFigureCount, getShape, hit, newInstance, remove, replaceChild, setChild, transformdecorate, pick, translate, undecoratecontains, getInteractor, getLayer, getOrigin, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, setInteractor, setParent, setToolTipText, setUserObject, setVisibleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisVisible, paint, setVisiblegetParent, getTransformContextpublic void addGrabHandle(GrabHandle gh)
public void clearGrabHandles()
public Rectangle2D getBounds()
getBounds in interface FiguregetBounds in class FigureDecoratorpublic GrabHandleFactory getGrabHandleFactory()
public DragInteractor getHandleInteractor()
public boolean isRepainting()
public void paint(Graphics2D g)
paint in interface VisibleComponentpaint in class FigureDecoratorpublic Figure pick(Rectangle2D r)
pick in interface FigureContainerpick in class AbstractFigureContainerpublic void removeGrabHandle(GrabHandle gh)
public void repaint(DamageRegion d)
repaint in interface CanvasComponentrepaint in class AbstractFigureContainerpublic abstract void refresh()
public void relocateGrabHandles()
public void repaint()
repaint in interface CanvasComponentrepaint in class AbstractFigurepublic void repaintAlready()
public void setGrabHandleFactory(GrabHandleFactory factory)
public void setHandleFilter(MouseFilter filter)
public void setHandleInteractor(DragInteractor interactor)
public void setRepainting(boolean repainting)
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.