Package org.cef.misc

Class CefPrintSettings


  • public abstract class CefPrintSettings
    extends java.lang.Object
    Class representing print settings.
    • 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.
      • setCopies

        public abstract void setCopies​(int copies)
        Set the number of copies.
      • getCopies

        public abstract int getCopies()
        Get the number of copies.