org.icepdf.ri.common
Class ViewModel
java.lang.Object
org.icepdf.ri.common.ViewModel
public class ViewModel
- extends java.lang.Object
Data model for the view, which maintains state on how a Document is being
presented to the user.
The default value of isShrinkToPrintableArea is true.
- Since:
- 2.0
- Author:
- Mark Collette
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ViewModel
public ViewModel()
getDefaultFilePath
public static java.lang.String getDefaultFilePath()
getDefaultURL
public static java.lang.String getDefaultURL()
setDefaultFilePath
public static void setDefaultFilePath(java.lang.String defFilePath)
setDefaultURL
public static void setDefaultURL(java.lang.String defURL)
getPrintHelper
public PrintHelper getPrintHelper()
setPrintHelper
public void setPrintHelper(PrintHelper printHelper)
isShrinkToPrintableArea
public boolean isShrinkToPrintableArea()
- Indicates the currently stored state of the shrink to fit printable area
property.
- Returns:
- true, to enable shrink to fit printable area;
false, otherwise.
setShrinkToPrintableArea
public void setShrinkToPrintableArea(boolean shrinkToPrintableArea)
- Can be set before a SwingController.print() is called to enable/disable
shrink to fit printable area.
- Parameters:
shrinkToPrintableArea - true, to enable shrink to fit printable area;
false, otherwise.