|
|||||||||
| 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
diva.canvas.interactor.PathManipulator
public class PathManipulator
A manipulator which attaches grab handles to the sites of the child figure. It renders the grab handles and gives them a chance to intercept picks.
| Nested Class Summary | |
|---|---|
private static class |
PathManipulator.Resizer
An interactor class that changes a vertex of the child figure and triggers a repaint. |
| Field Summary | |
|---|---|
private PathGeometry |
_geometry
The path geometry |
| Constructor Summary | |
|---|---|
PathManipulator()
Construct a new manipulator that uses rectangular grab-handles. |
|
PathManipulator(GrabHandleFactory f)
Construct a new manipulator using the given grab-handle factory. |
|
| Method Summary | |
|---|---|
private PathGeometry |
getGeometry()
Return the geometry of this manipulator |
FigureDecorator |
newInstance(Figure f)
Create a new instance of this manipulator. |
void |
refresh()
Refresh the geometry. |
void |
setChild(Figure f)
Set the child figure. |
| Methods inherited from class diva.canvas.interactor.Manipulator |
|---|
addGrabHandle, clearGrabHandles, getBounds, getGrabHandleFactory, getHandleInteractor, isRepainting, paint, 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, translate |
| Methods inherited from class diva.canvas.AbstractFigureContainer |
|---|
decorate, pick, 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 |
|---|
private PathGeometry _geometry
| Constructor Detail |
|---|
public PathManipulator()
public PathManipulator(GrabHandleFactory f)
| Method Detail |
|---|
private PathGeometry getGeometry()
public FigureDecorator newInstance(Figure f)
newInstance in class FigureDecoratorpublic void refresh()
refresh in class Manipulatorpublic void setChild(Figure f)
setChild in class FigureDecorator
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||