public class ViewModel
extends java.lang.Object
| Constructor and Description |
|---|
ViewModel() |
| Modifier and Type | Method and Description |
|---|---|
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 |
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.
|
public static java.lang.String getDefaultFilePath()
public static java.lang.String getDefaultURL()
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.