Package org.cef.misc
Class CefPrintSettings
- java.lang.Object
-
- org.cef.misc.CefPrintSettings
-
public abstract class CefPrintSettings extends java.lang.ObjectClass representing print settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCefPrintSettings.ColorModelPrint job color mode values.static classCefPrintSettings.DuplexModePrint job duplex mode values.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CefPrintSettingscreate()Create a new CefPrintSettings object.abstract voiddispose()Removes the native reference from an unused object.protected voidfinalize()abstract CefPrintSettings.ColorModelgetColorModel()Get the color model.abstract intgetCopies()Get the number of copies.abstract java.lang.StringgetDeviceName()Get the device name.abstract intgetDPI()Get the DPI (dots per inch).abstract CefPrintSettings.DuplexModegetDuplexMode()Get the duplex mode.abstract voidgetPageRanges(java.util.Vector<CefPageRange> ranges)Retrieve the page ranges.abstract intgetPageRangesCount()Returns the number of page ranges that currently exist.abstract booleanisLandscape()Returns true if the orientation is landscape.abstract booleanisReadOnly()Returns true if the values of this object are read-only.abstract booleanisSelectionOnly()Returns true if only the selection will be printed.abstract booleanisValid()Returns true if this object is valid.abstract voidsetCollate(boolean collate)Set whether pages will be collated.abstract voidsetColorModel(CefPrintSettings.ColorModel model)Set the color model.abstract voidsetCopies(int copies)Set the number of copies.abstract voidsetDeviceName(java.lang.String name)Set the device name.abstract voidsetDPI(int dpi)Set the DPI (dots per inch).abstract voidsetDuplexMode(CefPrintSettings.DuplexMode mode)Set the duplex mode.abstract voidsetOrientation(boolean landscape)Set the page orientation.abstract voidsetPageRanges(java.util.Vector<CefPageRange> ranges)Set the page ranges.abstract voidsetPrinterPrintableArea(java.awt.Dimension physical_size_device_units, java.awt.Rectangle printable_area_device_units, boolean landscape_needs_flip)Set the printer printable area in device units.abstract voidsetSelectionOnly(boolean selection_only)Set whether only the selection will be printed.abstract booleanwillCollate()Returns true if pages will be collated.
-
-
-
Method Detail
-
finalize
protected void finalize() throws java.lang.Throwable- Throws:
java.lang.Throwable
-
create
public static final CefPrintSettings create()
Create a new CefPrintSettings object.
-
dispose
public abstract void dispose()
Removes the native reference from an unused object.
-
isValid
public abstract boolean isValid()
Returns true if this object is valid. Do not call any other methods if this function returns false.
-
isReadOnly
public abstract boolean isReadOnly()
Returns true if the values of this object are read-only. Some APIs may expose read-only objects.
-
setOrientation
public abstract void setOrientation(boolean landscape)
Set the page orientation.
-
isLandscape
public abstract boolean isLandscape()
Returns true if the orientation is landscape.
-
setPrinterPrintableArea
public abstract void setPrinterPrintableArea(java.awt.Dimension physical_size_device_units, java.awt.Rectangle printable_area_device_units, boolean landscape_needs_flip)Set the printer printable area in device units. Some platforms already provide flipped area. Set |landscape_needs_flip| to false on those platforms to avoid double flipping.
-
setDeviceName
public abstract void setDeviceName(java.lang.String name)
Set the device name.
-
getDeviceName
public abstract java.lang.String getDeviceName()
Get the device name.
-
setDPI
public abstract void setDPI(int dpi)
Set the DPI (dots per inch).
-
getDPI
public abstract int getDPI()
Get the DPI (dots per inch).
-
setPageRanges
public abstract void setPageRanges(java.util.Vector<CefPageRange> ranges)
Set the page ranges.
-
getPageRangesCount
public abstract int getPageRangesCount()
Returns the number of page ranges that currently exist.
-
getPageRanges
public abstract void getPageRanges(java.util.Vector<CefPageRange> ranges)
Retrieve the page ranges.
-
setSelectionOnly
public abstract void setSelectionOnly(boolean selection_only)
Set whether only the selection will be printed.
-
isSelectionOnly
public abstract boolean isSelectionOnly()
Returns true if only the selection will be printed.
-
setCollate
public abstract void setCollate(boolean collate)
Set whether pages will be collated.
-
willCollate
public abstract boolean willCollate()
Returns true if pages will be collated.
-
setColorModel
public abstract void setColorModel(CefPrintSettings.ColorModel model)
Set the color model.
-
getColorModel
public abstract CefPrintSettings.ColorModel getColorModel()
Get the color model.
-
setCopies
public abstract void setCopies(int copies)
Set the number of copies.
-
getCopies
public abstract int getCopies()
Get the number of copies.
-
setDuplexMode
public abstract void setDuplexMode(CefPrintSettings.DuplexMode mode)
Set the duplex mode.
-
getDuplexMode
public abstract CefPrintSettings.DuplexMode getDuplexMode()
Get the duplex mode.
-
-