|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.Selection
org.tigris.gef.base.SelectionResize
public class SelectionResize
A Selection class to represent selections on Figs that present resize handles. The selected Fig can be moved or resized. Figrect, FigRRect, FigCircle, and FigGroup are some of the Figs that normally use this Selection. The selected Fig is told it's new bounding box, and some Figs (like FigGroup or FigPoly) do calculations to scale themselves.
Field Summary |
---|
Fields inherited from class org.tigris.gef.base.Selection |
---|
_content, BORDER_WIDTH, HAND_SIZE |
Constructor Summary | |
---|---|
SelectionResize(Fig f)
Construct a new SelectionResize for the given Fig |
Method Summary | |
---|---|
void |
dragHandle(int mX,
int mY,
int anX,
int anY,
Handle hand)
Change some attribute of the selected Fig when the user drags one of its handles. |
void |
hitHandle(java.awt.Rectangle r,
Handle h)
Return a handle ID for the handle under the mouse, or -1 if none. |
void |
paint(java.awt.Graphics g)
Paint the handles at the four corners and midway along each edge of the bounding box. |
Methods inherited from class org.tigris.gef.base.Selection |
---|
contains, contains, contains, damage, delete, dispose, endTrans, getBounds, getContent, getContentBounds, getLocation, getLocked, hit, hitHandle, keyPressed, keyReleased, keyTyped, mouseClicked, mouseDragged, mouseEntered, mouseExited, mouseMoved, mousePressed, mouseReleased, print, reorder, setcontent, stuffBounds, translate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SelectionResize(Fig f)
Method Detail |
---|
public void hitHandle(java.awt.Rectangle r, Handle h)
0-------1-------2 | | 3 4 | | 5-------6-------7
hitHandle
in class Selection
public void paint(java.awt.Graphics g)
paint
in class Selection
public void dragHandle(int mX, int mY, int anX, int anY, Handle hand)
dragHandle
in class Selection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |