java.lang.Object | ||
↳ | net.pierrox.lightning_launcher.script.api.svg.SvgElement | |
↳ | net.pierrox.lightning_launcher.script.api.svg.SvgPath |
SVG path (<path>).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
SvgPath(net.pierrox.android.lsvg.SvgPath path) |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Paint |
getFillPaint()
Return the paint used to fill the path, may be null if the path is not filled.
| ||||||||||
Path |
getPath()
Return the android Path object, decoded from the string specification.
| ||||||||||
Paint |
getStrokePaint()
Return the paint used to stroke the path, may be null if the path is not stroked.
| ||||||||||
void |
setFillPaint(Paint fillPaint)
Update the paint used to fill the path.
| ||||||||||
boolean |
setPath(String d)
Update the path using the given specification
| ||||||||||
void |
setStrokePaint(Paint strokePaint)
Update the paint used to stroke the path.
| ||||||||||
boolean |
setStyle(String style)
Update the style (fill, stroke and visibility) using the given style specification
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
net.pierrox.lightning_launcher.script.api.svg.SvgElement
| |||||||||||
From class
java.lang.Object
|
Return the paint used to fill the path, may be null if the path is not filled.
If the paint object is modified, the element need to be refreshed using invalidate()
Return the android Path object, decoded from the string specification.
If the path object is modified, the element need to be refreshed using invalidate()
Return the paint used to stroke the path, may be null if the path is not stroked.
If the paint object is modified, the element need to be refreshed using invalidate()
Update the paint used to fill the path.
The paint should have been configured this way: fillPaint.setStyle(Paint.Style.FILL);
fillPaint | paint, either a new one, or the paint returned by getFillPaint()
|
---|
Update the path using the given specification
d | path specification as defined here : https://svgwg.org/svg2-draft/paths.html#TheDProperty |
---|
Update the paint used to stroke the path.
The paint should have been configured this way: strokePaint.setStyle(Paint.Style.STROKE);
strokePaint | paint, either a new one, or the paint returned by getStrokePaint()
|
---|
Update the style (fill, stroke and visibility) using the given style specification
style | recognized elements are: fill, stroke, stroke-width, stroke-linecap, stroke-linejoin, stroke-miterlimit, stroke-dasharray, stroke-dashoffset, stroke-opacity, fill-opacity, display |
---|