public class PrintOptions extends Object
| Constructor and Description |
|---|
PrintOptions()
Constructs a default PrintOptions object.
|
PrintOptions(boolean autoRotate,
boolean shrinkToMargins,
boolean expandToMargins,
boolean centerInPage)
Constructs a new PrintOptions object and initializes each of its
variables to the parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAutoRotate()
Returns the value auto-rotate flag.
|
boolean |
isCenterInPage()
Returns the current value of the center-in-page flag.
|
boolean |
isExpandToMargins()
Returns the value of the expand-to-margins flag.
|
boolean |
isShrinkToMargins()
Returns the value of the shrink-to-margins flag.
|
void |
setAutoRotate(boolean autoRotate)
Sets the value of the auto-rotate flag.
|
void |
setCenterInPage(boolean centerInPage)
Sets the value of the center-in-page flag.
|
void |
setExpandToMargins(boolean expandToMargins)
Sets the value of the expand-to-margins flag.
|
void |
setShrinkToMargins(boolean shrinkToMargins)
Sets the value of the shrink-to-margins flag.
|
public PrintOptions()
public PrintOptions(boolean autoRotate,
boolean shrinkToMargins,
boolean expandToMargins,
boolean centerInPage)
autoRotate - Sets the auto rotate flag.shrinkToMargins - Sets the shrink to page flag.expandToMargins - Sets the expand to page flag.centerInPage - Sets the center in page flag.public boolean isAutoRotate()
public void setAutoRotate(boolean autoRotate)
autoRotate - The new value of the auto-rotate flag.public boolean isShrinkToMargins()
public void setShrinkToMargins(boolean shrinkToMargins)
shrinkToMargins - The new value of the shrink-to-margins flag.public boolean isExpandToMargins()
public void setExpandToMargins(boolean expandToMargins)
expandToMargins - The new value of the expand-to-margins flag.public boolean isCenterInPage()
public void setCenterInPage(boolean centerInPage)
centerInPage - The new value of the center-in-page flag.