Interface RenderTarget

  • All Known Subinterfaces:
    G2DTarget, PDFTarget, SVGTarget

    public interface RenderTarget
    RenderTarget is the graphic container the renderers draw into.

    There are three types of targets: Processing, PDF or SVG. When the target is G2D, renderers obtain the Graphics2D object. For the SVG target, renderers obtain Batik's Document instance. As the PDF target rely on the iText library renderers obtain the PdfContentByte object.

    Render targets are not drawing anything. They just make accessible the canvas renderers can draw into.

    When render targets have specific properties, values should be set in the PreviewProperties.

    Author:
    Yudi Xue, Mathieu Bastian
    See Also:
    Renderer