T
- the concrete print settings typepublic interface DuplexMode<T extends PrintSettings>
Implemented by concrete PrintSettings
implementations that support configuring the
duplex mode for printing.
Modifier and Type | Method and Description |
---|---|
DuplexMode |
duplexMode()
Returns the duplex mode used by the printer.
|
T |
duplexMode(DuplexMode duplexMode)
Configures the duplex mode for printing.
|
T duplexMode(DuplexMode duplexMode)
duplexMode
- the duplex mode to usejava.lang.IllegalArgumentException
- if the printer does not support the specified duplex modejava.lang.IllegalStateException
- if the current printing operation has been completedCapabilities.duplexModes()
DuplexMode duplexMode()
java.lang.IllegalStateException
- if the current printing operation has been completed