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: GrabHandle.java 38798 2005-07-08 20:00:01Z cxh $
Author:
John Reekie, Michael Shilman

Method Summary
 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 site
 void 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.Figure
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText, transform, translate
 
Methods inherited from interface diva.canvas.VisibleComponent
isVisible, paint, paint, setVisible
 
Methods inherited from interface diva.canvas.CanvasComponent
getTransformContext, repaint, repaint
 
Methods inherited from interface diva.util.UserObjectContainer
getUserObject, setUserObject
 

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.