Class SvgAttributes
java.lang.Object
pro.verron.asciidoc.converters.svg.SvgAttributes
- All Implemented Interfaces:
Iterable<SvgAttribute>
An ordered, deduplicated collection of SvgAttribute instances.
SvgAttribute.NONE attributes are silently ignored when added. Attributes
are sorted by name to produce deterministic SVG output.
-
Constructor Summary
ConstructorsConstructorDescriptionSvgAttributes(SvgAttribute... attributes) Constructs an attribute set from the given attributes. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an attribute with the given name and value.voidaddAll(SvgAttributes opts) Adds all attributes from anotherSvgAttributesinstance.@NonNull Iterator<SvgAttribute> iterator()Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Iterable
forEach, spliterator
-
Constructor Details
-
SvgAttributes
Constructs an attribute set from the given attributes.- Parameters:
attributes- initial attributes (none-values are ignored)
-
-
Method Details
-
iterator
- Specified by:
iteratorin interfaceIterable<SvgAttribute>
-
add
-
addAll
Adds all attributes from anotherSvgAttributesinstance.- Parameters:
opts- attributes to add
-