net.sf.latexdraw.ui
Class MenubarBuilder

java.lang.Object
  extended by org.malai.ui.UIComposer<javax.swing.JMenuBar>
      extended by net.sf.latexdraw.ui.MenubarBuilder

public class MenubarBuilder
extends UIComposer<javax.swing.JMenuBar>

The composer that creates the menu bar of the application.

This file is part of LaTeXDraw
Copyright (c) 2005-2012 Arnaud BLOUIN

LaTeXDraw is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

LaTeXDraw is distributed without any warranty; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

12/08/11

Version:
3.0
Author:
Arnaud BLOUIN

Field Summary
protected  MMenu displayMenu
          This menu contains the menu items related to the visibility of components.
protected  MMenu drawingMenu
          This menu contains menu items related with drawings.
protected  MMenu editMenu
          This menu contains menu items related with the editing of shapes.
protected  LFrame frame
          The main frame of the application.
protected  MMenu helpMenu
          This menu contains menu items related with the help.
protected  MMenu unitMenu
          This menu contains menu items to change the unit of the drawing.
 
Fields inherited from class org.malai.ui.UIComposer
widget
 
Constructor Summary
MenubarBuilder(LFrame frame)
          Creates the menu bar.
 
Method Summary
 void compose(MProgressBar progressBar)
          This method composes the user interface using instruments, presentations and widgets of the interactive system.
protected  void composeDisplayMenu()
          Initialises the menu "Display"
protected  void composeDrawingMenu()
           
protected  void composeEditMenu()
           
protected  void composeHelpMenu()
           
 
Methods inherited from class org.malai.ui.UIComposer
getWidget, setWidgetVisible
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frame

protected LFrame frame
The main frame of the application.


displayMenu

protected MMenu displayMenu
This menu contains the menu items related to the visibility of components.


drawingMenu

protected MMenu drawingMenu
This menu contains menu items related with drawings.


editMenu

protected MMenu editMenu
This menu contains menu items related with the editing of shapes.


unitMenu

protected MMenu unitMenu
This menu contains menu items to change the unit of the drawing.


helpMenu

protected MMenu helpMenu
This menu contains menu items related with the help.

Constructor Detail

MenubarBuilder

public MenubarBuilder(LFrame frame)
Creates the menu bar.

Parameters:
frame - The user interface that contains all the instruments.
Throws:
java.lang.NullPointerException - If one of the given arguments is null.
Since:
3.0
Method Detail

compose

public void compose(MProgressBar progressBar)
Description copied from class: UIComposer
This method composes the user interface using instruments, presentations and widgets of the interactive system.

Specified by:
compose in class UIComposer<javax.swing.JMenuBar>
Parameters:
progressBar - The progress bar that can be used to show the progress of the UI composition. Can be null.

composeDrawingMenu

protected void composeDrawingMenu()

composeEditMenu

protected void composeEditMenu()

composeHelpMenu

protected void composeHelpMenu()

composeDisplayMenu

protected void composeDisplayMenu()
Initialises the menu "Display"

Since:
3.0