Package org.xhtmlrenderer.pdf
Record Class FontDescription.Decorations
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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final float
The field for theunderlinePosition
record component.private final float
The field for theunderlineThickness
record component.private final int
The field for theweight
record component.private final float
The field for theyStrikeoutPosition
record component.private final float
The field for theyStrikeoutSize
record component. -
Constructor Summary
ConstructorsConstructorDescriptionDecorations
(int weight, float yStrikeoutSize, float yStrikeoutPosition, float underlinePosition, float underlineThickness) Creates an instance of aDecorations
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.float
Returns the value of theunderlinePosition
record component.float
Returns the value of theunderlineThickness
record component.int
weight()
Returns the value of theweight
record component.float
Returns the value of theyStrikeoutPosition
record component.float
Returns the value of theyStrikeoutSize
record component.
-
Field Details
-
weight
private final int weightThe field for theweight
record component. -
yStrikeoutSize
private final float yStrikeoutSizeThe field for theyStrikeoutSize
record component. -
yStrikeoutPosition
private final float yStrikeoutPositionThe field for theyStrikeoutPosition
record component. -
underlinePosition
private final float underlinePositionThe field for theunderlinePosition
record component. -
underlineThickness
private final float underlineThicknessThe field for theunderlineThickness
record component.
-
-
Constructor Details
-
Decorations
public Decorations(int weight, float yStrikeoutSize, float yStrikeoutPosition, float underlinePosition, float underlineThickness) Creates an instance of aDecorations
record class.- Parameters:
weight
- the value for theweight
record componentyStrikeoutSize
- the value for theyStrikeoutSize
record componentyStrikeoutPosition
- the value for theyStrikeoutPosition
record componentunderlinePosition
- the value for theunderlinePosition
record componentunderlineThickness
- the value for theunderlineThickness
record 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 theweight
record component.- Returns:
- the value of the
weight
record component
-
yStrikeoutSize
public float yStrikeoutSize()Returns the value of theyStrikeoutSize
record component.- Returns:
- the value of the
yStrikeoutSize
record component
-
yStrikeoutPosition
public float yStrikeoutPosition()Returns the value of theyStrikeoutPosition
record component.- Returns:
- the value of the
yStrikeoutPosition
record component
-
underlinePosition
public float underlinePosition()Returns the value of theunderlinePosition
record component.- Returns:
- the value of the
underlinePosition
record component
-
underlineThickness
public float underlineThickness()Returns the value of theunderlineThickness
record component.- Returns:
- the value of the
underlineThickness
record component
-