ach
Interface ToolbarController

All Known Implementing Classes:
ImagePanel

public interface ToolbarController

ToolbarController.java
Copyright (c) 2000 Helge Hackbarth, All Rights Reserved.
Interface to be used for toolbar implementations to be controlled
by ImagePanel

THE AUTHOR MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE SOFTWARE, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. THE AUTHOR SHALL NOT BE LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES.


Method Summary
 int getPageNum()
          get text of PageNum TextField and convert to int page number
 double getZoomFactor(double defaultZoom)
          get zoom factor from zoom TextField
 void setNumPagesText(int numPages)
          ToolbarController: set text of numPages Label to number of pages
 void setPageNumText(int pageNum)
          set text of PageNum TextField to given page number
 void setZoomText(double zoomFactor)
          set text of zoom TextField to zoomFactor
 

Method Detail

setPageNumText

public void setPageNumText(int pageNum)
set text of PageNum TextField to given page number


getPageNum

public int getPageNum()
get text of PageNum TextField and convert to int page number


setNumPagesText

public void setNumPagesText(int numPages)
ToolbarController: set text of numPages Label to number of pages


setZoomText

public void setZoomText(double zoomFactor)
set text of zoom TextField to zoomFactor


getZoomFactor

public double getZoomFactor(double defaultZoom)
get zoom factor from zoom TextField