|
|||||||||
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.BoundsManipulator
public class BoundsManipulator
A manipulator which attaches grab handles to the bounds of the child figure. It renders the grab handles and gives them a chance to intercept picks.
Field Summary | |
---|---|
protected Interactor |
_dragInteractor
The interactor that is attached to a move handle. |
protected BoundsGeometry |
_geometry
The geometry "helper" |
Constructor Summary | |
---|---|
BoundsManipulator()
Construct a new manipulator that uses rectangular grab-handles. |
|
BoundsManipulator(GrabHandleFactory f)
Construct a new manipulator using the given grab-handle factory. |
Method Summary | |
---|---|
protected BoundsGeometry |
getGeometry()
Return the geometry of this manipulator PWD: change protection to protected from private(!). |
FigureDecorator |
newInstance(Figure f)
Create a new instance of this manipulator. |
void |
refresh()
Refresh the geometry. |
void |
setChild(Figure child)
Set the child figure. |
void |
setDragInteractor(Interactor dragger)
Set the drag interactor for figures wrapped by this manipulator. |
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 |
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 BoundsGeometry _geometry
protected Interactor _dragInteractor
Constructor Detail |
---|
public BoundsManipulator()
public BoundsManipulator(GrabHandleFactory f)
Method Detail |
---|
protected BoundsGeometry getGeometry()
public FigureDecorator newInstance(Figure f)
newInstance
in class FigureDecorator
public void refresh()
refresh
in class Manipulator
public void setChild(Figure child)
setChild
in class FigureDecorator
public void setDragInteractor(Interactor dragger)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |