Class Stroke

    • Constructor Detail

      • Stroke

        public Stroke​(Paint paint,
                      double lineWidth)
        Parameters:
        paint -
        lineWidth -
        Throws:
        java.lang.IllegalArgumentException - if the document associated with the {@link com.pdf_tools.fourheights.pdftoolbox.pdf.content.Stroke# paint} argument has already been closed
        java.lang.IllegalArgumentException - if paint is null
    • Method Detail

      • getPaint

        public Paint getPaint()
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
      • setPaint

        public void setPaint​(Paint value)
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
        java.lang.IllegalArgumentException - if the document associated with the Paint object has already been closed
        java.lang.IllegalArgumentException - if the given Paint object is associated with a different document
        java.lang.IllegalArgumentException - if value is null
      • getLineWidth

        public double getLineWidth()
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
      • setLineWidth

        public void setLineWidth​(double value)
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
      • getLineCapStyle

        public LineCapStyle getLineCapStyle()
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
      • setLineCapStyle

        public void setLineCapStyle​(LineCapStyle value)
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
        java.lang.IllegalArgumentException - if value is null
      • getLineJoinStyle

        public LineJoinStyle getLineJoinStyle()
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
      • setLineJoinStyle

        public void setLineJoinStyle​(LineJoinStyle value)
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
        java.lang.IllegalArgumentException - if value is null
      • getDashArray

        public double[] getDashArray()
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
      • setDashArray

        public void setDashArray​(double... value)
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
        java.lang.IllegalArgumentException - if value is null
      • getDashPhase

        public double getDashPhase()
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
      • setDashPhase

        public void setDashPhase​(double value)
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only
      • getMiterLimit

        public double getMiterLimit()
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
      • setMiterLimit

        public void setMiterLimit​(double value)
        Throws:
        java.lang.IllegalStateException - if the document associated with the Stroke object has already been closed
        java.lang.UnsupportedOperationException - if the document is read-only