|
||||||||||
| 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.ModeCreate
org.tigris.gef.base.ModeCreateFigImage
A Mode to interpert user input while creating a FigImage. All of the actual event handling is inherited from ModeCreate. This class just implements the differences needed to make it specific to images.
| Field Summary | |
protected java.awt.Image |
_image
The image to be placed. |
| Fields inherited from class org.tigris.gef.base.ModeCreate |
_defaultHeight, _defaultWidth, _newItem, anchorX, anchorY |
| Fields inherited from class org.tigris.gef.base.FigModifyingModeImpl |
editor |
| Fields inherited from class org.tigris.gef.base.ModeImpl |
_args |
| Constructor Summary | |
ModeCreateFigImage()
|
|
| Method Summary | |
org.tigris.gef.presentation.Fig |
createNewItem(java.awt.event.MouseEvent me,
int snapX,
int snapY)
Create a new FigImage instance based on the given mouse down event and the state of the parent Editor. |
java.awt.Image |
image()
get and set the image to be used for the new FigImage. |
void |
image(java.awt.Image i)
|
java.lang.String |
instructions()
Reply a string of instructions that should be shown in the statusbar when this mode starts. |
void |
mouseDragged(java.awt.event.MouseEvent me)
Exactly the same as mouseMove. |
void |
mouseEntered(java.awt.event.MouseEvent me)
When the mouse enters an Editor, create the FigImage and place it at the mouse position. |
void |
mouseExited(java.awt.event.MouseEvent me)
When the mouse exits the editor, clean up the display a little. |
void |
mouseMoved(java.awt.event.MouseEvent me)
Whem the user drags or moves the mouse, move the FigImage to the current mouse position. |
void |
mousePressed(java.awt.event.MouseEvent me)
On mouse down, do nothing. |
| Methods inherited from class org.tigris.gef.base.ModeCreate |
creationDrag, getInitialCursor, keyPressed, mouseReleased, paint |
| Methods inherited from class org.tigris.gef.base.FigModifyingModeImpl |
done, getEditor, isFigEnclosedIn, print, setCursor, setEditor |
| Methods inherited from class org.tigris.gef.base.ModeImpl |
canExit, getArg, getArgs, init, keyReleased, keyTyped, leave, mouseClicked, 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 |
| Field Detail |
protected java.awt.Image _image
| Constructor Detail |
public ModeCreateFigImage()
| Method Detail |
public java.awt.Image image()
public void image(java.awt.Image i)
public java.lang.String instructions()
FigModifyingModeImpl
instructions in interface FigModifyingModeinstructions in class FigModifyingModeImpl
public org.tigris.gef.presentation.Fig createNewItem(java.awt.event.MouseEvent me,
int snapX,
int snapY)
createNewItem in class ModeCreatepublic void mouseEntered(java.awt.event.MouseEvent me)
mouseEntered in interface java.awt.event.MouseListenermouseEntered in class ModeImplpublic void mouseExited(java.awt.event.MouseEvent me)
mouseExited in interface java.awt.event.MouseListenermouseExited in class ModeImplpublic void mousePressed(java.awt.event.MouseEvent me)
mousePressed in interface java.awt.event.MouseListenermousePressed in class ModeCreatepublic void mouseMoved(java.awt.event.MouseEvent me)
mouseMoved in interface java.awt.event.MouseMotionListenermouseMoved in class ModeImplpublic void mouseDragged(java.awt.event.MouseEvent me)
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in class ModeCreate
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||