Interface SVGStyle
- All Superinterfaces:
SVGElement
- All Known Implementing Classes:
SVGElementAdapter, SVGGenericElement, SVGStyleImpl
@ClassVersion(sourceVersion="$Id: SVGStyle.java 1158 2026-03-14 16:23:29Z tquadrat $")
@API(status=STABLE,
since="0.0.5")
public sealed interface SVGStyle
extends SVGElement
permits SVGElementAdapter, SVGStyleImpl
The definition for the SVG
<style> element.- Author:
- Thomas Thrien (thomas.thrien@tquadrat.org)
- Version:
- $Id: SVGStyle.java 1158 2026-03-14 16:23:29Z tquadrat $
- Since:
- 0.0.5
- UML Diagram
-
UML Diagram for "org.tquadrat.foundation.svg.SVGStyle"
-
Field Summary
Fields inherited from interface SVGElement
CORE_ATTRIBUTES -
Method Summary
Modifier and TypeMethodDescriptionvoidaddStyle(CharSequence... styles) Adds a CSS style definition to this style.Returns the style sheet.voidMerges the given SVG<style>element into this one.
Only the CSS style definitions are taken from the other element, no attributes or comments.toString(int indentationLevel, boolean prettyPrint) Returns a String representation for this element instance.Methods inherited from interface SVGElement
addComment, getSVGElementCategory, setId, setLang, setPreserveSpace, setTabIndex, setTitle, setXMLBase, setXMLId, setXMLLang
-
Method Details
-
addStyle
Adds a CSS style definition to this style.- Parameters:
styles- The style definitions to add.
-
getStyleSheet
-
merge
-
toString
-
