- All Implemented Interfaces:
QPagedPaintDevice
,QPaintDevice
,QtObjectInterface
Paint device that paints on a printer
Java wrapper for Qt class QPrinter
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Java wrapper for Qt enum QPrinter::ColorModestatic enum
Java wrapper for Qt enum QPrinter::DuplexModestatic enum
Java wrapper for Qt enum QPrinter::OutputFormatstatic enum
Java wrapper for Qt enum QPrinter::PageOrderstatic enum
Java wrapper for Qt enum QPrinter::PaperSourcestatic enum
Java wrapper for Qt enum QPrinter::PrinterModestatic enum
Java wrapper for Qt enum QPrinter::PrinterStatestatic enum
Java wrapper for Qt enum QPrinter::PrintRangestatic enum
Java wrapper for Qt enum QPrinter::UnitNested classes/interfaces inherited from class io.qt.QtObject
QtObject.QPrivateConstructor
Nested classes/interfaces inherited from interface io.qt.gui.QPagedPaintDevice
QPagedPaintDevice.Impl, QPagedPaintDevice.PdfVersion
Nested classes/interfaces inherited from interface io.qt.gui.QPaintDevice
QPaintDevice.Impl, QPaintDevice.MemberAccess, QPaintDevice.PaintDeviceMetric
-
Constructor Summary
ModifierConstructorDescriptionQPrinter()
Overloaded constructor forQPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.QPrinter
(QPrinter.PrinterMode mode) QPrinter
(QPrinterInfo printer) Overloaded constructor forQPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
.QPrinter
(QPrinterInfo printer, QPrinter.PrinterMode mode) protected
Constructor for internal use only. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
abort()
final boolean
final int
See QPaintDevice::final QPrinter.ColorMode
final int
final String
creator()
final int
depth()
See QPaintDevice::final double
See QPaintDevice::final double
See QPaintDevice::static double
final String
docName()
final QPrinter.DuplexMode
duplex()
final boolean
final int
fromPage()
final boolean
fullPage()
final int
height()
See QPaintDevice::final int
heightMM()
See QPaintDevice::protected void
initPainter
(QPainter painter) final boolean
isValid()
final int
See QPaintDevice::final int
See QPaintDevice::protected int
metric
(QPaintDevice.PaintDeviceMetric arg__1) boolean
newPage()
final String
final QPrinter.OutputFormat
final QPageLayout
final QPrinter.PageOrder
final QPageRanges
final QRectF
pageRect
(QPrinter.Unit arg__1) final boolean
See QPaintDevice::final QRectF
paperRect
(QPrinter.Unit arg__1) final QPrinter.PaperSource
final int
See QPaintDevice::final int
See QPaintDevice::final QPrintEngine
final String
final QPrinter.PrinterState
final String
final QPrinter.PrintRange
protected QPaintDevice
redirected
(QPoint offset) final int
final void
setCollateCopies
(boolean collate) final void
setColorMode
(QPrinter.ColorMode arg__1) final void
setCopyCount
(int arg__1) final void
setCreator
(String arg__1) final void
setDocName
(String arg__1) final void
setDuplex
(QPrinter.DuplexMode duplex) protected final void
setEngines
(QPrintEngine printEngine, QPaintEngine paintEngine) final void
setFontEmbeddingEnabled
(boolean enable) final void
setFromTo
(int fromPage, int toPage) final void
setFullPage
(boolean arg__1) final void
setOutputFileName
(String arg__1) final void
setOutputFormat
(QPrinter.OutputFormat format) boolean
setPageLayout
(QPageLayout pageLayout) final boolean
setPageMargins
(QMarginsF margins) Overloaded function forsetPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)
withunits = io.qt.gui.QPageLayout.Unit.Millimeter
.boolean
setPageMargins
(QMarginsF margins, QPageLayout.Unit units) final void
setPageOrder
(QPrinter.PageOrder arg__1) boolean
setPageOrientation
(QPageLayout.Orientation orientation) void
setPageRanges
(QPageRanges ranges) boolean
setPageSize
(QPageSize pageSize) final void
setPaperSource
(QPrinter.PaperSource arg__1) final void
final void
setPrinterName
(String arg__1) final void
setPrintProgram
(String arg__1) final void
setPrintRange
(QPrinter.PrintRange range) final void
setResolution
(int arg__1) protected QPainter
final boolean
final int
toPage()
final int
width()
See QPaintDevice::final int
widthMM()
See QPaintDevice::Methods inherited from class io.qt.QtObject
dispose, equals, isDisposed
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.qt.QtObjectInterface
dispose, isDisposed
-
Constructor Details
-
QPrinter
public QPrinter()Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
. -
QPrinter
-
QPrinter
Overloaded constructor for
QPrinter(io.qt.printsupport.QPrinterInfo, io.qt.printsupport.QPrinter.PrinterMode)
withmode = io.qt.printsupport.QPrinter.PrinterMode.ScreenResolution
. -
QPrinter
-
QPrinter
Constructor for internal use only.- Parameters:
p
- expected to benull
.
-
-
Method Details
-
abort
-
collateCopies
-
colorCount
See QPaintDevice::
- Specified by:
colorCount
in interfaceQPaintDevice
-
colorMode
-
copyCount
-
creator
-
depth
See QPaintDevice::
- Specified by:
depth
in interfaceQPaintDevice
-
devicePixelRatio
See QPaintDevice::
- Specified by:
devicePixelRatio
in interfaceQPaintDevice
-
devicePixelRatioF
See QPaintDevice::
- Specified by:
devicePixelRatioF
in interfaceQPaintDevice
-
docName
-
duplex
-
fontEmbeddingEnabled
-
fromPage
-
fullPage
-
height
See QPaintDevice::
- Specified by:
height
in interfaceQPaintDevice
-
heightMM
See QPaintDevice::
- Specified by:
heightMM
in interfaceQPaintDevice
-
isValid
-
logicalDpiX
See QPaintDevice::
- Specified by:
logicalDpiX
in interfaceQPaintDevice
-
logicalDpiY
See QPaintDevice::
- Specified by:
logicalDpiY
in interfaceQPaintDevice
-
outputFileName
-
outputFormat
-
pageLayout
-
pageOrder
-
pageRanges
-
pageRect
-
paintingActive
See QPaintDevice::
- Specified by:
paintingActive
in interfaceQPaintDevice
-
paperRect
-
paperSource
-
pdfVersion
-
physicalDpiX
See QPaintDevice::
- Specified by:
physicalDpiX
in interfaceQPaintDevice
-
physicalDpiY
See QPaintDevice::
- Specified by:
physicalDpiY
in interfaceQPaintDevice
-
printEngine
-
printProgram
-
printRange
-
printerName
-
printerState
-
resolution
-
setCollateCopies
-
setColorMode
-
setCopyCount
-
setCreator
-
setDocName
-
setDuplex
-
setEngines
-
setFontEmbeddingEnabled
-
setFromTo
-
setFullPage
-
setOutputFileName
-
setOutputFormat
-
setPageOrder
-
setPaperSource
-
setPdfVersion
-
setPrintProgram
-
setPrintRange
-
setPrinterName
-
setResolution
-
supportedResolutions
-
supportsMultipleCopies
-
toPage
-
width
See QPaintDevice::
- Specified by:
width
in interfaceQPaintDevice
-
widthMM
See QPaintDevice::
- Specified by:
widthMM
in interfaceQPaintDevice
-
initPainter
-
metric
-
newPage
- Specified by:
newPage
in interfaceQPagedPaintDevice
-
paintEngine
- Specified by:
paintEngine
in interfaceQPagedPaintDevice
- Specified by:
paintEngine
in interfaceQPaintDevice
-
redirected
-
setPageLayout
- Specified by:
setPageLayout
in interfaceQPagedPaintDevice
-
setPageMargins
Overloaded function for
setPageMargins(io.qt.core.QMarginsF, io.qt.gui.QPageLayout.Unit)
withunits = io.qt.gui.QPageLayout.Unit.Millimeter
.- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageMargins
- Specified by:
setPageMargins
in interfaceQPagedPaintDevice
-
setPageOrientation
- Specified by:
setPageOrientation
in interfaceQPagedPaintDevice
-
setPageRanges
- Specified by:
setPageRanges
in interfaceQPagedPaintDevice
-
setPageSize
- Specified by:
setPageSize
in interfaceQPagedPaintDevice
-
devicePixelRatioFScale
public static double devicePixelRatioFScale()
-