java.lang.Object | |
↳ | net.pierrox.lightning_launcher.script.api.svg.SvgElement |
Known Direct Subclasses |
Known Indirect Subclasses |
The base class for all SVG elements.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getId()
Return this element identifier, if any.
| ||||||||||
SvgGroup |
getParent()
Return the parent element.
| ||||||||||
Matrix |
getTransform()
Return the transformation matrix, can be null if not set.
| ||||||||||
void |
invalidate()
Request an update.
| ||||||||||
boolean | isVisible() | ||||||||||
void |
setTransform(Matrix transform)
Set the transformation matrix for this element using a matrix
| ||||||||||
boolean |
setTransform(String specification)
Set the transformation matrix for this element using a svg specification (matrix, translate, rotate, etc.).
| ||||||||||
void | setVisible(boolean visible) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Return this element identifier, if any.
Return the parent element. This will always be null for a SvgSvg
element.
Return the transformation matrix, can be null if not set.
Request an update. This can be used to refresh the drawing if a property has been modified on it's back (access to android Paint, Path, etc.)
Set the transformation matrix for this element using a matrix
transform | if null, use the identity matrix (no transformation) |
---|
Set the transformation matrix for this element using a svg specification (matrix, translate, rotate, etc.).