com.openpcl.viewer.toolbar
Class PosToolBar

java.lang.Object
  extended by com.openpcl.viewer.toolbar.PosToolBar

public class PosToolBar
extends Object

This class is not a subclass of JComponent or JPanel and has a reference to the JToolBar to put on the screen, so you can't add an instance of this class to a Layout (add the JToolBar returned from buildPosJToolBar() to the Layout).

Author:
howard 9/21/06

Field Summary
protected  JToolBar mJToolBar
           
protected  PosPickAppLook mPickAppLook
           
protected  Color mZoomWidthButtonTextColor
           
protected static Insets sTOOLBAR_BUTTON_MARGIN
           
 
Constructor Summary
PosToolBar(OpenPCLViewer pOpenPCLViewer, PosManageToolBar pPosManageToolBar)
           
 
Method Summary
 void addButtonForGrayOut(JButton pJButton)
          Add buttons for gray out from subclass plugins.
 JToolBar buildPosJToolBar()
           
protected  JButton createCascadeWindowsButton()
          Cascade Windows toolbar button
protected  JButton createCloseAllFilesButton()
          Close All Files toolbar button
protected  JButton createCloseFileButton()
          Close File toolbar button
protected  JButton createHelpAboutButton()
          Help About toolbar button
protected  JButton createNextPageButton()
          Next Page toolbar button
protected  JButton createOpenLocalFileButton()
          Open Local File toolbar button
protected  JButton createOptionsButton()
          Options toolbar button
protected  JButton createPreviousPageButton()
          Previous Page toolbar button
protected  JButton createPrintButton()
          Print toolbar button
protected  JButton createSaveAsButton()
          Save as PCL file toolbar button
protected  JButton createShowHideTreeButton()
          Show/Hide Tree toolbar button
protected  JToggleButton createShowHideZoomSliderButton()
          Show/Hide Zoom Slider toolbar button
 JButton createToolBarButton(String iconName, String toolTip)
          Helper method that the other methods call to make toolbar JButtons passing in the file name for the icon and the tooltip text.
 JToggleButton createToolBarToggleButton(String iconName, String toolTip, boolean selected)
          Helper method that the other methods call to make toolbar JToggleButtons passing in the file name for the icon and the tooltip text and if initially selected
protected  JButton createZoomInButton()
          Zoom in toolbar button
protected  JButton createZoomOutButton()
          Zoom out toolbar button
protected  JButton createZoomWidthPageButton()
          Zoom width toolbar button
 JToolBar getJToolBar()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mJToolBar

protected JToolBar mJToolBar

sTOOLBAR_BUTTON_MARGIN

protected static final Insets sTOOLBAR_BUTTON_MARGIN

mZoomWidthButtonTextColor

protected Color mZoomWidthButtonTextColor

mPickAppLook

protected PosPickAppLook mPickAppLook
Constructor Detail

PosToolBar

public PosToolBar(OpenPCLViewer pOpenPCLViewer,
                  PosManageToolBar pPosManageToolBar)
Method Detail

getJToolBar

public JToolBar getJToolBar()

buildPosJToolBar

public JToolBar buildPosJToolBar()

createOpenLocalFileButton

protected JButton createOpenLocalFileButton()
Open Local File toolbar button


createCloseFileButton

protected JButton createCloseFileButton()
Close File toolbar button


createCloseAllFilesButton

protected JButton createCloseAllFilesButton()
Close All Files toolbar button


createSaveAsButton

protected JButton createSaveAsButton()
Save as PCL file toolbar button


createPrintButton

protected JButton createPrintButton()
Print toolbar button


createPreviousPageButton

protected JButton createPreviousPageButton()
Previous Page toolbar button


createNextPageButton

protected JButton createNextPageButton()
Next Page toolbar button


createShowHideTreeButton

protected JButton createShowHideTreeButton()
Show/Hide Tree toolbar button


createZoomOutButton

protected JButton createZoomOutButton()
Zoom out toolbar button


createZoomInButton

protected JButton createZoomInButton()
Zoom in toolbar button


createShowHideZoomSliderButton

protected JToggleButton createShowHideZoomSliderButton()
Show/Hide Zoom Slider toolbar button


createZoomWidthPageButton

protected JButton createZoomWidthPageButton()
Zoom width toolbar button


createCascadeWindowsButton

protected JButton createCascadeWindowsButton()
Cascade Windows toolbar button


createOptionsButton

protected JButton createOptionsButton()
Options toolbar button


createHelpAboutButton

protected JButton createHelpAboutButton()
Help About toolbar button


createToolBarButton

public JButton createToolBarButton(String iconName,
                                   String toolTip)
Helper method that the other methods call to make toolbar JButtons passing in the file name for the icon and the tooltip text.


createToolBarToggleButton

public JToggleButton createToolBarToggleButton(String iconName,
                                               String toolTip,
                                               boolean selected)
Helper method that the other methods call to make toolbar JToggleButtons passing in the file name for the icon and the tooltip text and if initially selected


addButtonForGrayOut

public void addButtonForGrayOut(JButton pJButton)
Add buttons for gray out from subclass plugins. Subclass plugins call this method, so don't delete or rename this method.



OpenPCL http://www.openpcl.com