Contents
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 TypeMethodDescriptionvoid
protected JCheckBoxMenuItem
addMenuCheckBox
(String label, JMenu menu, boolean selected) protected JMenuItem
addMenuItem
(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 void
makeEditMenu
(PlotCanvas canvas, Container container) protected void
makeFileMenu
(Container container, boolean addQuit)
-
Field Details
-
Constructor Details
-
SplotMenus
Create a set of menus and items for sPlot- Parameters:
canvas
- the plot canvas being controlledmenuBar
- the menu baraddQuit
- iftrue
include 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
- iftrue
include a quit item
-
-
Method Details
-
makeFileMenu
-
makeEditMenu
-
addMenuItem
-
addMenuCheckBox
-
actionPerformed
- Specified by:
actionPerformed
in interfaceActionListener
-
getPlotCanvas
-
getFileMenu
-
getEditMenu
-
getQuitItem
-
getPreferencesItem
-
getClearItem
-
getCurveItem
-