Class PdfCanvasConstants.TextRenderingMode

  • Enclosing class:
    PdfCanvasConstants

    public static final class PdfCanvasConstants.TextRenderingMode
    extends java.lang.Object
    The text rendering mode determines whether showing text causes glyph outlines to be stroked, filled, used as a clipping boundary, or some combination of the three. Stroking, filling, and clipping have the same effects for a text object as they do for a path object, although they are specified in an entirely different way. If the text rendering mode calls for filling, the current nonstroking color in the graphics state is used; if it calls for stroking, the current stroking color is used. All documentation for this class is taken from ISO 32000-1, section 9.3.6 "Text Rendering Mode".
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int CLIP
      Add text to path for clipping
      static int FILL
      Fill text
      static int FILL_CLIP
      Fill text and add to path for clipping
      static int FILL_STROKE
      Fill and stroke text
      static int FILL_STROKE_CLIP
      Fill, then stroke text and add to path for clipping
      static int INVISIBLE
      Neither fill nor stroke, i.e.
      static int STROKE
      Stroke text, providing the outline of the glyphs
      static int STROKE_CLIP
      Stroke text and add to path for clipping
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TextRenderingMode()  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • STROKE

        public static final int STROKE
        Stroke text, providing the outline of the glyphs
        See Also:
        Constant Field Values
      • INVISIBLE

        public static final int INVISIBLE
        Neither fill nor stroke, i.e. render invisibly
        See Also:
        Constant Field Values
      • FILL_CLIP

        public static final int FILL_CLIP
        Fill text and add to path for clipping
        See Also:
        Constant Field Values
      • STROKE_CLIP

        public static final int STROKE_CLIP
        Stroke text and add to path for clipping
        See Also:
        Constant Field Values
      • FILL_STROKE_CLIP

        public static final int FILL_STROKE_CLIP
        Fill, then stroke text and add to path for clipping
        See Also:
        Constant Field Values
    • Constructor Detail

      • TextRenderingMode

        private TextRenderingMode()