Class PDFChangeStrokeCmd

java.lang.Object
com.sun.pdfview.PDFCmd
com.sun.pdfview.PDFChangeStrokeCmd

class PDFChangeStrokeCmd extends PDFCmd
change the stroke style
  • Field Details

    • w

      float w
    • limit

      float limit
    • phase

      float phase
    • cap

      int cap
    • join

      int join
    • ary

      float[] ary
  • Constructor Details

    • PDFChangeStrokeCmd

      public PDFChangeStrokeCmd()
  • Method Details

    • 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 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 String toString(PDFRenderer state)