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()
double
getDashPhase()
LineCapStyle
getLineCapStyle()
LineJoinStyle
getLineJoinStyle()
double
getLineWidth()
double
getMiterLimit()
Paint
getPaint()
void
setDashArray(double... value)
void
setDashPhase(double value)
void
setLineCapStyle(LineCapStyle value)
void
setLineJoinStyle(LineJoinStyle value)
void
setLineWidth(double value)
void
setMiterLimit(double value)
void
setPaint(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
- ifpaint
isnull
-
-
Method Detail
-
getPaint
public Paint getPaint()
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closed
-
setPaint
public void setPaint(Paint value)
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- if the document associated with thePaint
object has already been closedjava.lang.IllegalArgumentException
- if the givenPaint
object is associated with a different documentjava.lang.IllegalArgumentException
- ifvalue
isnull
-
getLineWidth
public double getLineWidth()
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closed
-
setLineWidth
public void setLineWidth(double value)
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object 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 theStroke
object has already been closed
-
setLineCapStyle
public void setLineCapStyle(LineCapStyle value)
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- ifvalue
isnull
-
getLineJoinStyle
public LineJoinStyle getLineJoinStyle()
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closed
-
setLineJoinStyle
public void setLineJoinStyle(LineJoinStyle value)
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- ifvalue
isnull
-
getDashArray
public double[] getDashArray()
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closed
-
setDashArray
public void setDashArray(double... value)
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- ifvalue
isnull
-
getDashPhase
public double getDashPhase()
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closed
-
setDashPhase
public void setDashPhase(double value)
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object 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 theStroke
object has already been closed
-
setMiterLimit
public void setMiterLimit(double value)
- Throws:
java.lang.IllegalStateException
- if the document associated with theStroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-only
-
-