Package diva.canvas.interactor
Interface GrabHandle
-
- All Superinterfaces:
CanvasComponent
,Figure
,UserObjectContainer
,VisibleComponent
- All Known Implementing Classes:
BasicGrabHandle
,MoveHandle
public interface GrabHandle extends Figure
A grab handle for manipulating figures and so on. Grab-handles are attached to Sites.- Version:
- $Id$
- Author:
- John Reekie, Michael Shilman
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Site
getSite()
Get the site to which this grab-handle is attached.float
getSize()
Get the "size" of the grab-handle.void
relocate()
Reposition the grab-handle to its sitevoid
setSite(Site s)
Set the site to which this grab-handle is attached.void
setSize(float size)
Set the "size" of the grab-handle.-
Methods inherited from interface diva.canvas.CanvasComponent
getTransformContext, repaint, repaint
-
Methods inherited from interface diva.canvas.Figure
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText, transform, translate
-
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject
-
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint, paint, setVisible
-
-
-
-
Method Detail
-
getSite
Site getSite()
Get the site to which this grab-handle is attached.
-
getSize
float getSize()
Get the "size" of the grab-handle. The size is some dimension that approximately represents the distance from the attachment point to the edge.
-
relocate
void relocate()
Reposition the grab-handle to its site
-
setSite
void setSite(Site s)
Set the site to which this grab-handle is attached.
-
setSize
void setSize(float size)
Set the "size" of the grab-handle. The size is some dimension that approximately represents the distance from the attachment point to the edge.
-
-