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.
      Parameters:
      medium - the medium.
      Returns:
      the StyleDatabase.
    • createCanvas

      CSSCanvas createCanvas(String medium, CSSDocument doc)
      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.