public class

SvgElement

extends Object
java.lang.Object
   ↳ net.pierrox.lightning_launcher.script.api.svg.SvgElement
Known Direct Subclasses
Known Indirect Subclasses

Class Overview

The base class for all SVG elements.

Summary

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

Public Methods

public String getId ()

Return this element identifier, if any.

public SvgGroup getParent ()

Return the parent element. This will always be null for a SvgSvg element.

public Matrix getTransform ()

Return the transformation matrix, can be null if not set.

public void invalidate ()

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.)

public boolean isVisible ()

public void setTransform (Matrix transform)

Set the transformation matrix for this element using a matrix

Parameters
transform if null, use the identity matrix (no transformation)

public boolean setTransform (String specification)

Set the transformation matrix for this element using a svg specification (matrix, translate, rotate, etc.).

Returns
  • true if the transform specification has been parsed correctly, false if couldn't be understood

public void setVisible (boolean visible)