Record Class SvgDocument
java.lang.Object
java.lang.Record
pro.verron.asciidoc.converters.svg.SvgDocument
- Record Components:
width- viewport width in pixelsheight- viewport height in pixelschildren- child elements
- All Implemented Interfaces:
SvgElement
public record SvgDocument(int width, int height, List<SvgElement> children)
extends Record
implements SvgElement
SVG document root model (
<svg> element).-
Constructor Summary
ConstructorsConstructorDescriptionSvgDocument(int width, int height, List<SvgElement> children) Creates an instance of aSvgDocumentrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the SVG attributes for this element.children()Returns the value of thechildrenrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intheight()Returns the value of theheightrecord component.markup()Returns the SVG tag name for this element.final StringtoString()Returns a string representation of this record class.intwidth()Returns the value of thewidthrecord component.Methods inherited from interface SvgElement
serialize
-
Constructor Details
-
Method Details
-
markup
Description copied from interface:SvgElementReturns the SVG tag name for this element.- Specified by:
markupin interfaceSvgElement- Returns:
- the SVG tag name
-
attributes
Description copied from interface:SvgElementReturns the SVG attributes for this element.- Specified by:
attributesin interfaceSvgElement- Returns:
- the SVG attributes
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
width
-
height
-
children
Returns the value of thechildrenrecord component.- Specified by:
childrenin interfaceSvgElement- Returns:
- the value of the
childrenrecord component
-