Interface PApplet.GraphicsFactory

  • Enclosing class:
    PApplet

    public static interface PApplet.GraphicsFactory
    Interface to be registered and loaded by ServiceLoader for creating PGraphics.
    • Method Detail

      • createGraphics

        Optional<PGraphics> createGraphics​(PApplet parent,
                                           String type)
        Create a PGraphics for the given PApplet and renderer type if this factory supports that type, or an empty optional.
        Parameters:
        parent - PApplet parent
        type - renderer
        Returns:
        PGraphics or empty optional