public class PrintOptions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Dictionary<PreviewTextKey,java.lang.String> |
getCustomPreviewTexts()
Gets a dictionary with the custom texts to use in the built-in Print Preview form.
|
boolean |
getFillContents()
Gets a value indicating whether to print calendar elements with their original fill or
to use a white brush for filling.
|
boolean |
getFitToPage()
Gets a value indicating whether the print output is scaled to fit in a single page,
preserving the aspect ratio of the original view.
|
boolean |
getLandscape()
Gets the orientation of the pages.
|
java.awt.Insets |
getPageMargins()
Gets the page margins.
|
boolean |
getResourceHeaderTextsPerPage()
Gets a value indicating whether row header texts in a resource view
are printed on each page or only once in the middle of the row.
|
float |
getScale()
Gets the scale of the print output.
|
boolean |
getScaleToPage()
Gets a value indicating whether the print output is scaled to fit in a single page,
without preserving the aspect ratio of the original view.
|
void |
setFillContents(boolean value)
Sets a value indicating whether to print calendar elements with their original fill or
to use a white brush for filling.
|
void |
setFitToPage(boolean value)
Sets a value indicating whether the print output is scaled to fit in a single page,
preserving the aspect ratio of the original view.
|
void |
setLandscape(boolean value)
Sets the orientation of the pages.
|
void |
setPageMargins(java.awt.Insets value)
Sets the page margins.
|
void |
setResourceHeaderTextsPerPage(boolean value)
Sets a value indicating whether row header texts in a resource view
are printed on each page or only once in the middle of the row.
|
void |
setScale(float value)
Sets the scale of the print output.
|
void |
setScaleToPage(boolean value)
Sets a value indicating whether the print output is scaled to fit in a single page,
without preserving the aspect ratio of the original view.
|
public float getScale()
public void setScale(float value)
value
- A float value specifying the scale of print output relative to the screen.
The default is 1. The allowed values range from 0.1 to 10.public boolean getFitToPage()
public void setFitToPage(boolean value)
value
- true to fit the print output into a single page; otherwise, false.
The default is false.public boolean getScaleToPage()
public void setScaleToPage(boolean value)
value
- true to fit the print output into a single page; otherwise, false.
The default is false.public java.awt.Insets getPageMargins()
Insets
object specifying the page margins size.public void setPageMargins(java.awt.Insets value)
value
- An Insets
object specifying the page margins size.public boolean getLandscape()
public void setLandscape(boolean value)
value
- true to set the initial orientation of the print pages to landscape;
false to set it to portrait. The default is false.public boolean getResourceHeaderTextsPerPage()
public void setResourceHeaderTextsPerPage(boolean value)
value
- true to print resource row header texts on each page; false to print the text
in the middle of the row (on whatever page it might occur). The default is false.public boolean getFillContents()
public void setFillContents(boolean value)
value
- true, to fill calendar contents with their associated colors when printing;
false, to fill them with white. The default is true.public java.util.Dictionary<PreviewTextKey,java.lang.String> getCustomPreviewTexts()
Dictionary
with mapping between PreviewTextKey
values
and the custom texts.