public abstract class CefPrintSettings extends Object
| 限定符和类型 | 类和说明 |
|---|---|
static class |
CefPrintSettings.ColorModel
Print job color mode values.
|
static class |
CefPrintSettings.DuplexMode
Print job duplex mode values.
|
| 限定符和类型 | 方法和说明 |
|---|---|
abstract CefPrintSettings |
copy()
Returns a writable copy of this object.
|
static CefPrintSettings |
create()
Create a new CefPrintSettings object.
|
abstract CefPrintSettings.ColorModel |
getColorModel()
Get the color model.
|
abstract int |
getCopies()
Get the number of copies.
|
abstract String |
getDeviceName()
Get the device name.
|
abstract int |
getDPI()
Get the DPI (dots per inch).
|
abstract CefPrintSettings.DuplexMode |
getDuplexMode()
Get the duplex mode.
|
abstract void |
getPageRanges(Vector<CefPageRange> ranges)
Retrieve the page ranges.
|
abstract int |
getPageRangesCount()
Returns the number of page ranges that currently exist.
|
abstract boolean |
isLandscape()
Returns true if the orientation is landscape.
|
abstract boolean |
isReadOnly()
Returns true if the values of this object are read-only.
|
abstract boolean |
isSelectionOnly()
Returns true if only the selection will be printed.
|
abstract boolean |
isValid()
Returns true if this object is valid.
|
abstract void |
setCollate(boolean collate)
Set whether pages will be collated.
|
abstract void |
setColorModel(CefPrintSettings.ColorModel model)
Set the color model.
|
abstract void |
setCopies(int copies)
Set the number of copies.
|
abstract void |
setDeviceName(String name)
Set the device name.
|
abstract void |
setDPI(int dpi)
Set the DPI (dots per inch).
|
abstract void |
setDuplexMode(CefPrintSettings.DuplexMode mode)
Set the duplex mode.
|
abstract void |
setOrientation(boolean landscape)
Set the page orientation.
|
abstract void |
setPageRanges(Vector<CefPageRange> ranges)
Set the page ranges.
|
abstract void |
setPrinterPrintableArea(Dimension physical_size_device_units,
Rectangle printable_area_device_units,
boolean landscape_needs_flip)
Set the printer printable area in device units.
|
abstract void |
setSelectionOnly(boolean selection_only)
Set whether only the selection will be printed.
|
abstract boolean |
willCollate()
Returns true if pages will be collated.
|
public static final CefPrintSettings create()
public abstract boolean isValid()
public abstract boolean isReadOnly()
public abstract CefPrintSettings copy()
public abstract void setOrientation(boolean landscape)
public abstract boolean isLandscape()
public abstract void setPrinterPrintableArea(Dimension physical_size_device_units, Rectangle printable_area_device_units, boolean landscape_needs_flip)
public abstract void setDeviceName(String name)
public abstract String getDeviceName()
public abstract void setDPI(int dpi)
public abstract int getDPI()
public abstract void setPageRanges(Vector<CefPageRange> ranges)
public abstract int getPageRangesCount()
public abstract void getPageRanges(Vector<CefPageRange> ranges)
public abstract void setSelectionOnly(boolean selection_only)
public abstract boolean isSelectionOnly()
public abstract void setCollate(boolean collate)
public abstract boolean willCollate()
public abstract void setColorModel(CefPrintSettings.ColorModel model)
public abstract CefPrintSettings.ColorModel getColorModel()
public abstract void setCopies(int copies)
public abstract int getCopies()
public abstract void setDuplexMode(CefPrintSettings.DuplexMode mode)
public abstract CefPrintSettings.DuplexMode getDuplexMode()
Copyright © 2017. All rights reserved.