java.lang.Object
java.lang.Record
org.jhotdraw8.svg.text.SvgFontSize
public record SvgFontSize(@Nullable SvgFontSize.SizeKeyword keyword, @Nullable org.jhotdraw8.css.value.CssSize length)
extends Record
SVG font size.
References:
- CSS-Fonts-3
- w3.org
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSvgFontSize(@Nullable SvgFontSize.SizeKeyword keyword, @Nullable org.jhotdraw8.css.value.CssSize length) Creates an instance of aSvgFontSizerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublegetConvertedValue(Figure figure, org.jhotdraw8.css.value.UnitConverter converter) final inthashCode()Returns a hash code value for this object.@Nullable SvgFontSize.SizeKeywordkeyword()Returns the value of thekeywordrecord component.@Nullable org.jhotdraw8.css.value.CssSizelength()Returns the value of thelengthrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SvgFontSize
public SvgFontSize(@Nullable SvgFontSize.SizeKeyword keyword, @Nullable org.jhotdraw8.css.value.CssSize length) Creates an instance of aSvgFontSizerecord class.- Parameters:
keyword- the value for thekeywordrecord componentlength- the value for thelengthrecord component
-
-
Method Details
-
getConvertedValue
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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. All components in this record class are compared withObjects::equals(Object,Object). -
keyword
Returns the value of thekeywordrecord component.- Returns:
- the value of the
keywordrecord component
-
length
public @Nullable org.jhotdraw8.css.value.CssSize length()Returns the value of thelengthrecord component.- Returns:
- the value of the
lengthrecord component
-