|
|||||||||
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
jsky.image.graphics.gui.ImageGraphicsMenu
public class ImageGraphicsMenu
A menu with graphics related items, for drawing and manipulating figures on an image.
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 CanvasDraw |
canvasDraw
Object managing the drawing |
protected JRadioButtonMenuItem[] |
drawingModeMenuItems
Array of menu items. |
protected JMenuItem |
saveGraphicsMenuItem
"Save Graphics With Image" Menu item |
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 | |
---|---|
ImageGraphicsMenu(CanvasDraw canvasDraw)
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 |
createFillMenu()
Create the "Fill" menu |
protected JMenu |
createFontMenu()
Create the "Font" menu |
protected JMenu |
createLineWidthMenu()
Create the "Line Width" menu |
protected JMenu |
createOutlineMenu()
Create the "Outline" menu |
protected JMenuItem |
createSaveGraphicsWithImageMenuItem()
Create and return the "Save Graphics With Image" menu item. |
static void |
main(String[] args)
test main: usage: java GraphicsImageDisplay |
protected void |
updateStates()
Update the enabled states of some menu items |
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 CanvasDraw canvasDraw
protected JRadioButtonMenuItem[] drawingModeMenuItems
protected JMenuItem saveGraphicsMenuItem
Constructor Detail |
---|
public ImageGraphicsMenu(CanvasDraw canvasDraw)
Method Detail |
---|
protected void updateStates()
protected JMenu createDrawingModeMenu()
protected void createDrawingModeMenuItem(int drawingMode, JMenu menu, ButtonGroup group)
protected JMenu createLineWidthMenu()
protected JMenu createOutlineMenu()
protected JMenu createFillMenu()
protected JMenu createCompositeMenu()
protected JMenu createFontMenu()
protected JMenuItem createSaveGraphicsWithImageMenuItem()
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |