Class SplotMenus
java.lang.Object
cnuphys.splot.plot.SplotMenus
- All Implemented Interfaces:
ActionListener, EventListener
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSplotMenus(PlotCanvas canvas, JMenuBar menuBar, boolean addQuit) Create a set of menus and items for sPlotSplotMenus(PlotCanvas canvas, JPopupMenu popup, boolean addQuit) Create a set of menus and items for sPlot -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected JCheckBoxMenuItemaddMenuCheckBox(String label, JMenu menu, boolean selected) protected JMenuItemaddMenuItem(String label, char accelChar, JMenu menu) Convenience routine for adding a menu item.Get the clear (canvas) itemGet the curve (editor) itemGet the edit menuGet the file menuGet the underlying plot canvasGet the preferences itemGet the quit item (might be null)protected voidmakeEditMenu(PlotCanvas canvas, Container container) protected voidmakeFileMenu(Container container, boolean addQuit)
-
Field Details
-
_fileMenu
-
_editMenu
-
_quitItem
-
_prefItem
-
_dataItem
-
_clearItem
-
_curveItem
-
_axesItem
-
_showExtraCB
-
-
Constructor Details
-
SplotMenus
Create a set of menus and items for sPlot- Parameters:
canvas- the plot canvas being controlledmenuBar- the menu baraddQuit- iftrueinclude a quit item
-
SplotMenus
Create a set of menus and items for sPlot- Parameters:
canvas- the plot canvas being controlledpopup- a popup to hold the menusaddQuit- iftrueinclude a quit item
-
-
Method Details
-
makeFileMenu
-
makeEditMenu
-
addMenuItem
-
addMenuCheckBox
-
actionPerformed
- Specified by:
actionPerformedin interfaceActionListener
-
getPlotCanvas
-
getFileMenu
-
getEditMenu
-
getQuitItem
-
getPreferencesItem
-
getClearItem
-
getCurveItem
-