|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--mvp.View
|
+--jdraw.edit_ui.EditMenu
Class EditMenu is the pulldown menu for the Edit model. The EditMenu widget is a JMenu. Anonymous instances of JMenuItem are defined for each menu item.
| Field Summary | |
protected javax.swing.JMenuItem |
deleteItem
A JMenuItem for the 'Delete' item. |
protected Edit |
edit
A local reference to the Edit model. |
protected PreciseMoveDialog |
preciseMoveDialog
A PreciseMoveDialog for 'Precise Move...'. |
protected PreciseRotateDialog |
preciseRotateDialog
A PreciseRotateDialog for 'Precise Rotate...'. |
protected javax.swing.JMenuItem |
redoItem
A JMenuItem for the 'Redo' item. |
protected javax.swing.JMenuItem |
undoItem
A JMenuItem for the 'Undo' item. |
| Fields inherited from class mvp.View |
editable, model, screen, shown, widget, window |
| Constructor Summary | |
EditMenu(mvp.Screen screen,
Edit edit,
EditUI editUI)
Construct the menu with the given Edit model. |
|
| Method Summary | |
protected void |
addCopy()
Add the 'Copy' menu item. |
protected void |
addCut()
Add the 'Cut' menu item. |
protected void |
addDelete()
Add the 'Delete' menu item. |
protected void |
addDuplicate()
Add the 'Duplicate' menu item. |
protected void |
addFlipHorizontal()
Add the 'Flip Horizontally' menu item. |
protected void |
addFlipVertical()
Add the 'Flip Vertically' menu item. |
protected void |
addPaste()
Add the 'Paste' menu item. |
protected void |
addPreciseMove()
Add the 'Precise Move ...' menu item. |
protected void |
addPreciseRotate()
Add the 'Precise Rotate' menu item. |
protected void |
addPreciseScale()
Add the 'Precise Scale ...' menu item. |
protected void |
addRedo()
Add the 'Redo' menu item. |
protected void |
addRotateClockwise()
Add the 'Rotate 90 CW' menu item. |
protected void |
addRotateCounter()
Add the 'Rotate 90 CCW' menu item. |
protected void |
addSelectAll()
Add the 'Select All' menu item. |
protected void |
addUndo()
Add the 'Undo' menu item. |
java.awt.Component |
compose()
Compose the menu items into the pulldown. |
Edit |
getEdit()
|
void |
setRedoActive(boolean enable)
|
void |
setUndoActive(boolean enable)
|
| Methods inherited from class mvp.View |
getModel, getWidget, getWindow, hide, isEditable, isShown, run, setEditable, setModel, show, show, update |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Edit edit
protected javax.swing.JMenuItem undoItem
protected javax.swing.JMenuItem redoItem
protected javax.swing.JMenuItem deleteItem
protected PreciseMoveDialog preciseMoveDialog
protected PreciseRotateDialog preciseRotateDialog
| Constructor Detail |
public EditMenu(mvp.Screen screen,
Edit edit,
EditUI editUI)
screen - - The Screen object to be passed to constructor.edit - - The companion Edit object.editUI - - The companion EditUI object.| Method Detail |
public java.awt.Component compose()
compose in class mvp.Viewprotected void addUndo()
public void setUndoActive(boolean enable)
protected void addRedo()
public void setRedoActive(boolean enable)
protected void addCut()
protected void addCopy()
protected void addPaste()
protected void addDuplicate()
protected void addDelete()
protected void addSelectAll()
protected void addFlipHorizontal()
protected void addFlipVertical()
protected void addRotateClockwise()
protected void addRotateCounter()
protected void addPreciseMove()
protected void addPreciseScale()
protected void addPreciseRotate()
public Edit getEdit()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||