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