java.lang.Object
io.sf.carte.doc.agent.AbstractDeviceFactory
io.sf.carte.doc.agent.HeadlessDeviceFactory
- All Implemented Interfaces:
DeviceFactory
Device factory for headless devices.
Only creates null canvases.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateCanvas
(String medium, CSSDocument doc) Creates a Canvas for the given document and target medium.Methods inherited from class io.sf.carte.doc.agent.AbstractDeviceFactory
getStyleDatabase, setStyleDatabase
-
Constructor Details
-
HeadlessDeviceFactory
public HeadlessDeviceFactory()
-
-
Method Details
-
createCanvas
Description copied from interface:DeviceFactory
Creates a Canvas for the given document and target medium.- Parameters:
medium
- the target medium.doc
- the document.- Returns:
- the canvas, or null if the factory does not support that medium.
-