Interface OutputDevice

    • Method Detail

      • setPaint

        void setPaint​(java.awt.Paint paint)
      • pushTransforms

        @Deprecated
        java.util.List<java.awt.geom.AffineTransform> pushTransforms​(java.util.List<java.awt.geom.AffineTransform> transforms)
        Deprecated.
        Apply the given transform on top of the current one in the PDF graphics stream. This is a cumulative operation. You should popTransform after the box and children are painted.
        Returns:
        the list of inverse transforms to undo the effect of this transform
      • popTransforms

        @Deprecated
        void popTransforms​(java.util.List<java.awt.geom.AffineTransform> inverse)
        Deprecated.
      • getAbsoluteTransformOriginX

        @Deprecated
        float getAbsoluteTransformOriginX()
        Deprecated.
      • getAbsoluteTransformOriginY

        @Deprecated
        float getAbsoluteTransformOriginY()
        Deprecated.
      • setFont

        void setFont​(FSFont font)
      • setColor

        void setColor​(FSColor color)
      • drawRect

        void drawRect​(int x,
                      int y,
                      int width,
                      int height)
      • drawOval

        void drawOval​(int x,
                      int y,
                      int width,
                      int height)
      • drawBorderLine

        void drawBorderLine​(java.awt.Shape bounds,
                            int side,
                            int width,
                            boolean solid)
      • drawImage

        void drawImage​(FSImage image,
                       int x,
                       int y,
                       boolean interpolate)
      • drawLinearGradient

        default void drawLinearGradient​(FSLinearGradient backgroundLinearGradient,
                                        java.awt.Shape bounds)
      • draw

        void draw​(java.awt.Shape s)
      • fill

        void fill​(java.awt.Shape s)
      • fillRect

        void fillRect​(int x,
                      int y,
                      int width,
                      int height)
      • fillOval

        void fillOval​(int x,
                      int y,
                      int width,
                      int height)
      • clip

        @Deprecated
        void clip​(java.awt.Shape s)
        Deprecated.
      • getClip

        @Deprecated
        java.awt.Shape getClip()
        Deprecated.
      • setClip

        @Deprecated
        void setClip​(java.awt.Shape s)
        Deprecated.
      • translate

        void translate​(double tx,
                       double ty)
      • setStroke

        void setStroke​(java.awt.Stroke s)
      • getStroke

        java.awt.Stroke getStroke()
      • getRenderingHint

        java.lang.Object getRenderingHint​(java.awt.RenderingHints.Key key)
      • setRenderingHint

        void setRenderingHint​(java.awt.RenderingHints.Key key,
                              java.lang.Object value)
      • isSupportsSelection

        @Deprecated
        boolean isSupportsSelection()
        Deprecated.
      • isSupportsCMYKColors

        boolean isSupportsCMYKColors()
      • drawWithGraphics

        void drawWithGraphics​(float x,
                              float y,
                              float width,
                              float height,
                              OutputDeviceGraphicsDrawer renderer)
        Draw something using a Graphics2D at the given rectangle.
      • isPDF

        boolean isPDF()
      • pushClip

        void pushClip​(java.awt.Shape s)
        Applies a clip on the output device. This is a cumulative operation. The fast renderer MUST use pushClip and popClip in preference to clip and setClip.

        NOTE: The current implementation shares a stack between transforms and clips, so calls to pushTransformLayer(AffineTransform), popTransformLayer(), pushClip(Shape) and popClip() MUST be nested correctly.
      • isFastRenderer

        boolean isFastRenderer()
        The new (2018) fast renderer is in use.
      • startStructure

        java.lang.Object startStructure​(StructureType type,
                                        Box box)
        Propagate the structure heirachy to allow for PDF/UA compliance.
      • endStructure

        void endStructure​(java.lang.Object token)