public class HomerMenu
extends java.lang.Object
Constructor and Description |
---|
HomerMenu(HomerMainFrame parent)
Create the menu bar for the window.
|
Modifier and Type | Method and Description |
---|---|
javax.swing.JFileChooser |
getFileChooser()
Get the file chooser.
|
javax.swing.filechooser.FileFilter |
getLayoutFilter()
Get the layout file filter.
|
javax.swing.JMenuBar |
getMenuBar()
Configure the window menu bar.
|
javax.swing.filechooser.FileFilter |
getModelFilter()
Get the model file filter.
|
void |
setOrientation(LayoutParser.ScreenOrientation orientation)
Set the orientation selection in the menu.
|
public HomerMenu(HomerMainFrame parent)
parent
- The parent frame in which the menu bar will be shown.public javax.swing.JFileChooser getFileChooser()
public javax.swing.filechooser.FileFilter getLayoutFilter()
public javax.swing.JMenuBar getMenuBar()
public javax.swing.filechooser.FileFilter getModelFilter()
public void setOrientation(LayoutParser.ScreenOrientation orientation)
orientation
- The proposed screen orientation.