public class BasicGrabHandle extends BasicRectangle implements GrabHandle
Constructor and Description |
---|
BasicGrabHandle(Site s)
Construct a new grab handle attached to the given
site.
|
Modifier and Type | Method and Description |
---|---|
Site |
getSite()
Get the site that this handle is attached to
|
float |
getSize()
Get the "size" of the grab-handle.
|
void |
relocate()
Reposition the grab-handle if necessary
|
void |
setSite(Site s)
Set the set to which this grab-handle is attached.
|
void |
setSize(float size)
Set the "size" of the grab-handle.
|
void |
translate(double x,
double y)
Translating a grab-handle moves its site, but _doesn't_
move the grab-handle itself (that will be handled by the
reshape manipulator).
|
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getOrigin, getShape, getStrokePaint, hit, isCentered, paint, setCentered, setComposite, setDashArray, setFillPaint, setLineWidth, setPrototypeShape, setShape, setStroke, setStrokePaint, transform
contains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, setInteractor, setParent, setToolTipText, setUserObject, setVisible
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText, transform
isVisible, paint, paint, setVisible
getTransformContext, repaint, repaint
getUserObject, setUserObject
public BasicGrabHandle(Site s)
public Site getSite()
getSite
in interface GrabHandle
public float getSize()
getSize
in interface GrabHandle
public void relocate()
relocate
in interface GrabHandle
public void setSite(Site s)
setSite
in interface GrabHandle
public void setSize(float size)
setSize
in interface GrabHandle
public void translate(double x, double y)
translate
in interface Figure
translate
in class BasicRectangle
x
- The x value to be moved.y
- The y value to be moved.