java.lang.Object
java.lang.Record
org.xhtmlrenderer.pdf.FontDescription.Decorations
- Enclosing class:
- FontDescription
public static record FontDescription.Decorations(int weight, float yStrikeoutSize, float yStrikeoutPosition, float underlinePosition, float underlineThickness)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDecorations(int weight, float yStrikeoutSize, float yStrikeoutPosition, float underlinePosition, float underlineThickness) Creates an instance of aDecorationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.floatReturns the value of theunderlinePositionrecord component.floatReturns the value of theunderlineThicknessrecord component.intweight()Returns the value of theweightrecord component.floatReturns the value of theyStrikeoutPositionrecord component.floatReturns the value of theyStrikeoutSizerecord component.
-
Constructor Details
-
Decorations
public Decorations(int weight, float yStrikeoutSize, float yStrikeoutPosition, float underlinePosition, float underlineThickness) Creates an instance of aDecorationsrecord class.- Parameters:
weight- the value for theweightrecord componentyStrikeoutSize- the value for theyStrikeoutSizerecord componentyStrikeoutPosition- the value for theyStrikeoutPositionrecord componentunderlinePosition- the value for theunderlinePositionrecord componentunderlineThickness- the value for theunderlineThicknessrecord component
-
-
Method Details
-
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 with '=='. -
weight
public int weight()Returns the value of theweightrecord component.- Returns:
- the value of the
weightrecord component
-
yStrikeoutSize
public float yStrikeoutSize()Returns the value of theyStrikeoutSizerecord component.- Returns:
- the value of the
yStrikeoutSizerecord component
-
yStrikeoutPosition
public float yStrikeoutPosition()Returns the value of theyStrikeoutPositionrecord component.- Returns:
- the value of the
yStrikeoutPositionrecord component
-
underlinePosition
public float underlinePosition()Returns the value of theunderlinePositionrecord component.- Returns:
- the value of the
underlinePositionrecord component
-
underlineThickness
public float underlineThickness()Returns the value of theunderlineThicknessrecord component.- Returns:
- the value of the
underlineThicknessrecord component
-