|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.ri.common.ViewModel
public class ViewModel
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.
| Constructor Summary | |
|---|---|
ViewModel()
|
|
| Method Summary | |
|---|---|
static java.io.File |
getDefaultFile()
|
static java.lang.String |
getDefaultFilePath()
|
static java.lang.String |
getDefaultURL()
|
int |
getPrintCopies()
Number of copies to print |
PrintHelper |
getPrintHelper()
|
boolean |
isShrinkToPrintableArea()
Indicates the currently stored state of the shrink to fit printable area property. |
boolean |
isWidgetAnnotationHighlight()
Indicates that widget highlighting is enabled. |
static void |
setDefaultFile(java.io.File f)
|
static void |
setDefaultFilePath(java.lang.String defFilePath)
|
static void |
setDefaultURL(java.lang.String defURL)
|
void |
setIsWidgetAnnotationHighlight(boolean isWidgetAnnotationHighlight)
Sets the value of widgetAnnotation highlight model. |
void |
setPrintCopies(int printCopies)
Sets the number of print copies that should be make during the next print. |
void |
setPrintHelper(PrintHelper printHelper)
|
void |
setShrinkToPrintableArea(boolean shrinkToPrintableArea)
Can be set before a SwingController.print() is called to enable/disable shrink to fit printable area. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ViewModel()
| Method Detail |
|---|
public static java.io.File getDefaultFile()
public static java.lang.String getDefaultFilePath()
public static java.lang.String getDefaultURL()
public static void setDefaultFile(java.io.File f)
public static void setDefaultFilePath(java.lang.String defFilePath)
public static void setDefaultURL(java.lang.String defURL)
public PrintHelper getPrintHelper()
public void setPrintHelper(PrintHelper printHelper)
public boolean isShrinkToPrintableArea()
public void setShrinkToPrintableArea(boolean shrinkToPrintableArea)
shrinkToPrintableArea - true, to enable shrink to fit printable area;
false, otherwise.public int getPrintCopies()
public void setPrintCopies(int printCopies)
printCopies - one or more copiespublic boolean isWidgetAnnotationHighlight()
public void setIsWidgetAnnotationHighlight(boolean isWidgetAnnotationHighlight)
isWidgetAnnotationHighlight - true to enable highlight, otherwise false.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||