|
||||||||||
| 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
public class 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 Form| Field 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)
|
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 FigModifyingModeinstructions in class FigModifyingModeImplpublic void mouseDragged(java.awt.event.MouseEvent mouseEvent)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class ModeImplpublic void keyPressed(java.awt.event.KeyEvent keyEvent)
keyPressed in interface java.awt.event.KeyListenerkeyPressed in class ModeImplpublic void keyReleased(java.awt.event.KeyEvent keyEvent)
keyReleased in interface java.awt.event.KeyListenerkeyReleased in class ModeImplpublic void mousePressed(java.awt.event.MouseEvent me)
mousePressed in interface java.awt.event.MouseListenermousePressed in class ModeImplpublic void mouseReleased(java.awt.event.MouseEvent me)
mouseReleased in interface java.awt.event.MouseListenermouseReleased in class ModeImplpublic void done()
ModeImpl
done in interface Modedone in class FigModifyingModeImplpublic void paint(java.awt.Graphics g)
FigModifyingModeImpl
paint in interface FigModifyingModepaint in class FigModifyingModeImpl
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||