|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.AbstractButton
javax.swing.JMenuItem
javax.swing.JMenu
uk.ac.starlink.diva.DrawGraphicsMenu
public class DrawGraphicsMenu
A menu with graphics related actions from a DrawActions
instance
for drawing and manipulating figures on a Draw
implementation.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class javax.swing.JMenu |
---|
JMenu.AccessibleJMenu, JMenu.WinListener |
Nested classes/interfaces inherited from class javax.swing.JMenuItem |
---|
JMenuItem.AccessibleJMenuItem |
Nested classes/interfaces inherited from class javax.swing.AbstractButton |
---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
Nested classes/interfaces inherited from class javax.swing.JComponent |
---|
JComponent.AccessibleJComponent |
Nested classes/interfaces inherited from class java.awt.Container |
---|
Container.AccessibleAWTContainer |
Nested classes/interfaces inherited from class java.awt.Component |
---|
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy |
Field Summary | |
---|---|
protected DrawActions |
drawActions
Object managing the drawing |
protected JRadioButtonMenuItem[] |
drawingModeMenuItems
Array of menu items. |
protected JMenuItem |
saveRestoreGraphicsMenuItem
Save and restore graphics menu item |
protected FigureStore |
store
The FigureStore used to save and restore figures. |
Fields inherited from class javax.swing.JMenu |
---|
popupListener |
Fields inherited from class javax.swing.JComponent |
---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
Fields inherited from class java.awt.Component |
---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
Fields inherited from interface javax.swing.SwingConstants |
---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
Fields inherited from interface java.awt.image.ImageObserver |
---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
Constructor Summary | |
---|---|
DrawGraphicsMenu(DrawActions drawActions)
Create a menu with graphics related items |
Method Summary | |
---|---|
protected JMenu |
createCompositeMenu()
Create the "Composite" menu |
protected JMenu |
createDrawingModeMenu()
Create the "Drawing Mode" menu |
protected void |
createDrawingModeMenuItem(int drawingMode,
JMenu menu,
ButtonGroup group)
Create the menu item for the given mode |
protected JMenu |
createInterpMenu()
Create the interpolated curves menu |
protected JMenu |
createLineWidthMenu()
Create the "Line Width" menu |
void |
selectColor(boolean flag)
|
void |
selectFont()
|
protected JMenu |
updateFillMenu(boolean set)
Create or update the "Fill" menu, if set is true assume last entry has just been added and make it current. |
protected JMenu |
updateFontMenu()
Update or create the "Font" menu |
protected JMenu |
updateOutlineMenu(boolean set)
Create or update the "Outline" menu. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.swing.MenuElement |
---|
processKeyEvent, processMouseEvent |
Field Detail |
---|
protected DrawActions drawActions
protected JRadioButtonMenuItem[] drawingModeMenuItems
protected JMenuItem saveRestoreGraphicsMenuItem
protected FigureStore store
Constructor Detail |
---|
public DrawGraphicsMenu(DrawActions drawActions)
Method Detail |
---|
protected JMenu createDrawingModeMenu()
protected void createDrawingModeMenuItem(int drawingMode, JMenu menu, ButtonGroup group)
protected JMenu createLineWidthMenu()
protected JMenu updateOutlineMenu(boolean set)
protected JMenu updateFillMenu(boolean set)
public void selectColor(boolean flag)
protected JMenu createCompositeMenu()
protected JMenu updateFontMenu()
public void selectFont()
protected JMenu createInterpMenu()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |