|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.tigris.gef.base.ModeImpl
org.tigris.gef.base.FigModifyingModeImpl
org.tigris.gef.base.ModeModify
A Mode to process events from the Editor when the user is modifying a Fig. Right now users can drag one or more Figs around the drawing area, or they can move a handle on a single Fig.
Fig
,
Selection
,
Serialized FormField Summary |
Fields inherited from class org.tigris.gef.base.FigModifyingModeImpl |
editor |
Fields inherited from class org.tigris.gef.base.ModeImpl |
_args |
Constructor Summary | |
ModeModify(Editor par)
Construct a new ModeModify with the given parent, and set the Anchor point to a default location (the _anchor's proper position will be determioned on mouse down). |
Method Summary | |
void |
done()
When a Mode handles a certain event that indicates that the user wants to exit that Mode (e.g., a mouse up event after a drag in ModeCreateEdge) the Mode calls done to make switching to another Mode possible. |
java.lang.String |
instructions()
Reply a string of instructions that should be shown in the statusbar when this mode starts. |
void |
keyPressed(java.awt.event.KeyEvent keyEvent)
|
void |
keyReleased(java.awt.event.KeyEvent keyEvent)
|
protected boolean |
legal(int dx,
int dy,
SelectionManager sm,
java.awt.event.MouseEvent me)
Deprecated. 0.10. Remove in 0.11 |
void |
mouseDragged(java.awt.event.MouseEvent mouseEvent)
When the user drags the mouse two things can happen: (1) if the user is dragging the body of one or more Figs then they are all moved around the drawing area, or (2) if the user started dragging on a handle of one Fig then the user can drag the handle around the drawing area and the Fig reacts to that. |
void |
mousePressed(java.awt.event.MouseEvent me)
When the user presses the mouse button on a Fig, this Mode starts preparing for future drag events by finding if a handle was clicked on. |
void |
mouseReleased(java.awt.event.MouseEvent me)
On mouse up the modification interaction is done. |
void |
paint(java.awt.Graphics g)
Modes can paint themselves to give the user feedback. |
Methods inherited from class org.tigris.gef.base.FigModifyingModeImpl |
getEditor, getInitialCursor, isFigEnclosedIn, print, setCursor, setEditor |
Methods inherited from class org.tigris.gef.base.ModeImpl |
canExit, getArg, getArgs, init, keyTyped, leave, mouseClicked, mouseEntered, mouseExited, mouseMoved, setArg, setArgs, start |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.tigris.gef.base.Mode |
canExit, getArg, getArgs, init, setArg, setArgs, start |
Constructor Detail |
public ModeModify(Editor par)
Method Detail |
public java.lang.String instructions()
instructions
in interface FigModifyingMode
instructions
in class FigModifyingModeImpl
public void mouseDragged(java.awt.event.MouseEvent mouseEvent)
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in class ModeImpl
public void keyPressed(java.awt.event.KeyEvent keyEvent)
keyPressed
in interface java.awt.event.KeyListener
keyPressed
in class ModeImpl
public void keyReleased(java.awt.event.KeyEvent keyEvent)
keyReleased
in interface java.awt.event.KeyListener
keyReleased
in class ModeImpl
public void mousePressed(java.awt.event.MouseEvent me)
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in class ModeImpl
public void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in class ModeImpl
public void done()
ModeImpl
done
in interface Mode
done
in class FigModifyingModeImpl
public void paint(java.awt.Graphics g)
FigModifyingModeImpl
paint
in interface FigModifyingMode
paint
in class FigModifyingModeImpl
protected boolean legal(int dx, int dy, SelectionManager sm, java.awt.event.MouseEvent me)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |