Package org.cef.misc
Class CefPrintSettings
- java.lang.Object
-
- org.cef.misc.CefPrintSettings
-
public abstract class CefPrintSettings extends java.lang.Object
Class representing print settings.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
CefPrintSettings.ColorModel
Print job color mode values.static class
CefPrintSettings.DuplexMode
Print job duplex mode values.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static CefPrintSettings
create()
Create a new CefPrintSettings object.abstract void
dispose()
Removes the native reference from an unused object.protected void
finalize()
abstract CefPrintSettings.ColorModel
getColorModel()
Get the color model.abstract int
getCopies()
Get the number of copies.abstract java.lang.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(java.util.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(java.lang.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(java.util.Vector<CefPageRange> ranges)
Set the page ranges.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.abstract void
setSelectionOnly(boolean selection_only)
Set whether only the selection will be printed.abstract boolean
willCollate()
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.
-
-