|
||||||||||
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.SelectionReshape
A Selection that allows the user to reshape the selected Fig. This is used with FigPoly, FigLine, and FigInk. One handle is drawn over each point on the Fig.
FigLine
,
FigPoly
,
FigInk
,
Serialized FormField Summary | |
protected int |
_selectedHandle
|
Fields inherited from class org.tigris.gef.base.Selection |
_content, BORDER_WIDTH, HAND_SIZE |
Constructor Summary | |
SelectionReshape(org.tigris.gef.presentation.Fig f)
Construct a new SelectionReshape for the given Fig |
Method Summary | |
void |
dragHandle(int mX,
int mY,
int anX,
int anY,
org.tigris.gef.presentation.Handle h)
Change some attribute of the selected Fig when the user drags one of its handles. |
void |
hitHandle(java.awt.Rectangle r,
org.tigris.gef.presentation.Handle h)
Return a handle ID for the handle under the mouse, or -1 if none. |
void |
keyPressed(java.awt.event.KeyEvent ke)
|
void |
keyReleased(java.awt.event.KeyEvent ke)
|
void |
keyTyped(java.awt.event.KeyEvent ke)
If the user presses delete or backaspace while a handle is selected, remove that point from the polygon. |
void |
paint(java.awt.Graphics g)
Paint the handles at the four corners and midway along each edge of the bounding box. |
void |
updateEdgeEnds(org.tigris.gef.presentation.FigEdgePoly poly,
org.tigris.gef.presentation.Handle handle,
int x,
int y)
|
Methods inherited from class org.tigris.gef.base.Selection |
contains, contains, contains, damage, delete, dispose, endTrans, getBounds, getContent, getContentBounds, getLocation, getLocked, hit, hitHandle, 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 |
Field Detail |
protected int _selectedHandle
Constructor Detail |
public SelectionReshape(org.tigris.gef.presentation.Fig f)
Method Detail |
public void hitHandle(java.awt.Rectangle r, org.tigris.gef.presentation.Handle h)
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, org.tigris.gef.presentation.Handle h)
dragHandle
in class Selection
public void updateEdgeEnds(org.tigris.gef.presentation.FigEdgePoly poly, org.tigris.gef.presentation.Handle handle, int x, int y)
public void keyPressed(java.awt.event.KeyEvent ke)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class Selection
public void keyReleased(java.awt.event.KeyEvent ke)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class Selection
public void keyTyped(java.awt.event.KeyEvent ke)
keyTyped
in interface java.awt.event.KeyListener
keyTyped
in class Selection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |