|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiva.canvas.AbstractFigure
diva.canvas.toolbox.BasicFigure
diva.canvas.toolbox.BasicRectangle
diva.canvas.interactor.BasicGrabHandle
public class BasicGrabHandle
A basic rectangle grab-handle implementation.
Field Summary | |
---|---|
private Site |
_site
The site |
private float |
_size
|
private double |
_x
|
private double |
_y
|
Constructor Summary | |
---|---|
BasicGrabHandle(Site s)
Construct a new grab handle attached to the given site. |
Method Summary | |
---|---|
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). |
Methods inherited from class diva.canvas.toolbox.BasicFigure |
---|
getBounds, getComposite, getDashArray, getFillPaint, getLineWidth, getOrigin, getShape, getStrokePaint, hit, isCentered, paint, setCentered, setComposite, setDashArray, setFillPaint, setLineWidth, setPrototypeShape, setShape, setStroke, setStrokePaint, transform |
Methods inherited from class diva.canvas.AbstractFigure |
---|
contains, getInteractor, getLayer, getParent, getToolTipText, getTransformContext, getUserObject, intersects, isVisible, paint, repaint, repaint, 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.Figure |
---|
contains, getBounds, getInteractor, getLayer, getOrigin, getParent, getShape, getToolTipText, hit, intersects, setInteractor, setParent, setToolTipText, transform |
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 |
Field Detail |
---|
private Site _site
private double _x
private double _y
private float _size
Constructor Detail |
---|
public BasicGrabHandle(Site s)
Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |