Package io.sf.carte.doc.agent
Interface DeviceFactory
- All Known Implementing Classes:
AbstractDeviceFactory
,HeadlessDeviceFactory
public interface DeviceFactory
Device factory.
A device factory is the core source of device-related objects, like style databases and canvases, for the different media supported by the device(s).
-
Method Summary
Modifier and TypeMethodDescriptioncreateCanvas
(String medium, CSSDocument doc) Creates a Canvas for the given document and target medium.getStyleDatabase
(String medium) Supplies a style database for the given medium.
-
Method Details
-
getStyleDatabase
Supplies a style database for the given medium.- Parameters:
medium
- the medium.- Returns:
- the StyleDatabase.
-
createCanvas
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.
-