Class PDFChangeStrokeCmd


  • class PDFChangeStrokeCmd
    extends PDFCmd
    change the stroke style
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) float[] ary  
      (package private) int cap  
      (package private) int join  
      (package private) float limit  
      (package private) float phase  
      (package private) float w  
    • Field Detail

      • w

        float w
      • limit

        float limit
      • phase

        float phase
      • cap

        int cap
      • join

        int join
      • ary

        float[] ary
    • Constructor Detail

      • PDFChangeStrokeCmd

        public PDFChangeStrokeCmd()
    • Method Detail

      • setWidth

        public void setWidth​(float w)
        set the width of the stroke. Rendering needs to account for a minimum stroke width in creating the output.
        Parameters:
        w - float
      • setEndCap

        public void setEndCap​(int cap)
      • setLineJoin

        public void setLineJoin​(int join)
      • setMiterLimit

        public void setMiterLimit​(float limit)
      • setDash

        public void setDash​(float[] ary,
                            float phase)
      • execute

        public java.awt.geom.Rectangle2D execute​(PDFRenderer state)
        Description copied from class: PDFCmd
        mark the page or change the graphics state
        Specified by:
        execute in class PDFCmd
        Parameters:
        state - the current graphics state; may be modified during execution.
        Returns:
        the region of the page made dirty by executing this command or null if no region was touched. Note this value should be in the coordinates of the image touched, not the page.
      • toString

        public java.lang.String toString​(PDFRenderer state)