Class GuiSvgDocument.Node
java.lang.Object
com.render.api.gui.GuiSvgDocument.Node
- Enclosing class:
GuiSvgDocument
Stable retained SVG element wrapper.
-
Method Summary
Modifier and TypeMethodDescriptionanimate(String name, GuiSvgAnimation animation) Animates one serialized SVG attribute using the retained view clock.booleanReturns whether this node has an animation for the supplied attribute.children()classes()id()parent()removeAnimation(String name) Stops and removes one retained SVG attribute animation.removeAttribute(String name) removeClass(String value) longstyle(Consumer<GuiStyleBuilder> style) tag()
-
Method Details
-
stableIdentity
public long stableIdentity() -
tag
-
id
-
classes
-
attributes
-
parent
-
children
-
attribute
-
removeAttribute
-
addClass
-
removeClass
-
style
-
animate
Animates one serialized SVG attribute using the retained view clock.Replacing an animation keeps the original underlying attribute value so
removeAnimation(String)can restore it.- Parameters:
name- SVG attribute nameanimation- animation definition- Returns:
- this node
-
removeAnimation
Stops and removes one retained SVG attribute animation.- Parameters:
name- SVG attribute name- Returns:
- this node
-
animated
Returns whether this node has an animation for the supplied attribute.
-