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 Details

    • getStyleDatabase

      StyleDatabase getStyleDatabase(String medium)
      Supplies a style database for the given medium.
      medium - the medium.
      the StyleDatabase.
    • createCanvas

      CSSCanvas createCanvas(String medium, CSSDocument doc)
      Creates a Canvas for the given document and target medium.
      medium - the target medium.
      doc - the document.
      the canvas, or null if the factory does not support that medium.