Class HeadlessDeviceFactory

java.lang.Object
io.sf.carte.doc.agent.AbstractDeviceFactory
io.sf.carte.doc.agent.HeadlessDeviceFactory
All Implemented Interfaces:
DeviceFactory

public class HeadlessDeviceFactory extends AbstractDeviceFactory
Device factory for headless devices.

Only creates null canvases.

  • Constructor Details

    • HeadlessDeviceFactory

      public HeadlessDeviceFactory()
  • Method Details

    • createCanvas

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