net.sf.latexdraw.ui
Class UIBuilder

java.lang.Object
  extended by org.malai.ui.UIComposer<LFrame>
      extended by net.sf.latexdraw.ui.UIBuilder

public class UIBuilder
extends UIComposer<LFrame>

This composer composes the latexdraw user interface.

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.

20/31/2010

Since:
3.0
Author:
Arnaud BLOUIN

Field Summary
protected  MenubarBuilder menubarBuilder
          The menu bar composer.
protected  PropertiesToolbarBuilder propToolbarBuilder
          The properties tool bar composer.
protected  ToolbarBuilder toolbarBuilder
          The tool bar composer.
 
Fields inherited from class org.malai.ui.UIComposer
widget
 
Constructor Summary
UIBuilder(LFrame frame)
          Creates the composer of the latexdraw user interface.
 
Method Summary
 void compose(MProgressBar progressBar)
          This method composes the user interface using instruments, presentations and widgets of the interactive system.
protected  void initialiseInstrumentsActivation()
           
protected  void setEventableToInstruments()
          Sets the eventable objects to the instruments.
protected  void setGlobalShortcutEventable(Instrument instrument, LCanvas canvas)
           
 void setWidgetVisible(java.awt.Component widget, boolean visible)
          Changes the visibility of the given widget and may launch a process of recomposition/adaptation of the UI if needed.
 
Methods inherited from class org.malai.ui.UIComposer
getWidget
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

menubarBuilder

protected MenubarBuilder menubarBuilder
The menu bar composer.


toolbarBuilder

protected ToolbarBuilder toolbarBuilder
The tool bar composer.


propToolbarBuilder

protected PropertiesToolbarBuilder propToolbarBuilder
The properties tool bar composer.

Constructor Detail

UIBuilder

public UIBuilder(LFrame frame)
Creates the composer of the latexdraw user interface.

Parameters:
frame - The frame of the interactive system that contains the instruments and presentations to compose.
Since:
3.0
Method Detail

setWidgetVisible

public void setWidgetVisible(java.awt.Component widget,
                             boolean visible)
Description copied from class: UIComposer
Changes the visibility of the given widget and may launch a process of recomposition/adaptation of the UI if needed.

Overrides:
setWidgetVisible in class UIComposer<LFrame>
Parameters:
widget - The widget to change its visibility.
visible - True: the widget will be visible.

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<LFrame>
Parameters:
progressBar - The progress bar that can be used to show the progress of the UI composition. Can be null.

setEventableToInstruments

protected void setEventableToInstruments()
Sets the eventable objects to the instruments.

Since:
3.0

setGlobalShortcutEventable

protected void setGlobalShortcutEventable(Instrument instrument,
                                          LCanvas canvas)

initialiseInstrumentsActivation

protected void initialiseInstrumentsActivation()