Interface DuplexMode<T extends PrintSettings>
- Type Parameters:
T
- the concrete print settings type
- All Known Subinterfaces:
SystemPrinter.HtmlSettings
,SystemPrinter.PdfSettings
,SystemPrinter.Settings<T>
public interface DuplexMode<T extends PrintSettings>
Allows configuring the duplex mode for printing.
Implemented by concrete PrintSettings
implementations that support configuring the
duplex mode for printing.
- Since:
- 7.13
-
Method Summary
Modifier and TypeMethodDescriptionReturns the duplex mode used by the printer.duplexMode
(DuplexMode duplexMode) Configures the duplex mode for printing.
-
Method Details
-
duplexMode
Configures the duplex mode for printing.- Parameters:
duplexMode
- the duplex mode to use- Returns:
- this instance
- Throws:
IllegalArgumentException
- if the printer does not support the specified duplex modeObjectClosedException
- if the current printing operation has been completed- See Also:
-
duplexMode
DuplexMode duplexMode()Returns the duplex mode used by the printer.- Throws:
ObjectClosedException
- if the current printing operation has been completed
-