Package com.pdftools.toolbox.pdf.content
Class Stroke
- java.lang.Object
-
- com.pdftools.toolbox.internal.NativeBase
-
- com.pdftools.toolbox.internal.NativeObject
-
- com.pdftools.toolbox.pdf.content.Stroke
-
public class Stroke extends NativeObject
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double[]getDashArray()doublegetDashPhase()LineCapStylegetLineCapStyle()LineJoinStylegetLineJoinStyle()doublegetLineWidth()doublegetMiterLimit()PaintgetPaint()voidsetDashArray(double... value)voidsetDashPhase(double value)voidsetLineCapStyle(LineCapStyle value)voidsetLineJoinStyle(LineJoinStyle value)voidsetLineWidth(double value)voidsetMiterLimit(double value)voidsetPaint(Paint value)-
Methods inherited from class com.pdftools.toolbox.internal.NativeObject
equals, hashCode
-
-
-
-
Constructor Detail
-
Stroke
public Stroke(Paint paint, double lineWidth)
- Parameters:
paint-lineWidth-- Throws:
java.lang.IllegalArgumentException- if the document associated with the {@link com.pdftools.toolbox.pdf.content.Stroke# paint} argument has already been closedjava.lang.IllegalArgumentException- ifpaintisnull
-
-
Method Detail
-
getPaint
public Paint getPaint()
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closed
-
setPaint
public void setPaint(Paint value)
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closedjava.lang.UnsupportedOperationException- if the document is read-onlyjava.lang.IllegalArgumentException- if the document associated with thePaintobject has already been closedjava.lang.IllegalArgumentException- if the givenPaintobject is associated with a different documentjava.lang.IllegalArgumentException- ifvalueisnull
-
getLineWidth
public double getLineWidth()
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closed
-
setLineWidth
public void setLineWidth(double value)
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getLineCapStyle
public LineCapStyle getLineCapStyle()
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closed
-
setLineCapStyle
public void setLineCapStyle(LineCapStyle value)
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closedjava.lang.UnsupportedOperationException- if the document is read-onlyjava.lang.IllegalArgumentException- ifvalueisnull
-
getLineJoinStyle
public LineJoinStyle getLineJoinStyle()
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closed
-
setLineJoinStyle
public void setLineJoinStyle(LineJoinStyle value)
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closedjava.lang.UnsupportedOperationException- if the document is read-onlyjava.lang.IllegalArgumentException- ifvalueisnull
-
getDashArray
public double[] getDashArray()
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closed
-
setDashArray
public void setDashArray(double... value)
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closedjava.lang.UnsupportedOperationException- if the document is read-onlyjava.lang.IllegalArgumentException- ifvalueisnull
-
getDashPhase
public double getDashPhase()
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closed
-
setDashPhase
public void setDashPhase(double value)
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
getMiterLimit
public double getMiterLimit()
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closed
-
setMiterLimit
public void setMiterLimit(double value)
- Throws:
java.lang.IllegalStateException- if the document associated with theStrokeobject has already been closedjava.lang.UnsupportedOperationException- if the document is read-only
-
-