public class Stroke extends NativeObject
Modifier and Type | Method and Description |
---|---|
static Stroke |
createDynamicObject(long handle) |
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) |
equals, hashCode
public Stroke(Paint paint, double lineWidth)
paint
- lineWidth
- java.lang.IllegalArgumentException
- if the paint argument is null
java.lang.IllegalArgumentException
- if the document associated with the paint
argument has already been closedpublic static Stroke createDynamicObject(long handle)
public Paint getPaint()
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedpublic void setPaint(Paint value)
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- if the given Paint
object is null
java.lang.IllegalArgumentException
- if the document associated with the Paint
object has already been closedjava.lang.IllegalArgumentException
- if the given Paint
object is associated with a different documentpublic double getLineWidth()
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedpublic void setLineWidth(double value)
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlypublic LineCapStyle getLineCapStyle()
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedpublic void setLineCapStyle(LineCapStyle value)
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- if value
is null
public LineJoinStyle getLineJoinStyle()
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedpublic void setLineJoinStyle(LineJoinStyle value)
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- if value
is null
public double[] getDashArray()
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedpublic void setDashArray(double... value)
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlyjava.lang.IllegalArgumentException
- if value
is null
public double getDashPhase()
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedpublic void setDashPhase(double value)
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-onlypublic double getMiterLimit()
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedpublic void setMiterLimit(double value)
java.lang.IllegalStateException
- if the document associated with the Stroke
object has already been closedjava.lang.UnsupportedOperationException
- if the document is read-only