Record Class FontDescription.Decorations
java.lang.Object
java.lang.Record
org.openpdf.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 floatThe field for theunderlinePositionrecord component.private final floatThe field for theunderlineThicknessrecord component.private final intThe field for theweightrecord component.private final floatThe field for theyStrikeoutPositionrecord component.private final floatThe field for theyStrikeoutSizerecord component. -
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.
-
Field Details
-
weight
private final int weightThe field for theweightrecord component. -
yStrikeoutSize
private final float yStrikeoutSizeThe field for theyStrikeoutSizerecord component. -
yStrikeoutPosition
private final float yStrikeoutPositionThe field for theyStrikeoutPositionrecord component. -
underlinePosition
private final float underlinePositionThe field for theunderlinePositionrecord component. -
underlineThickness
private final float underlineThicknessThe field for theunderlineThicknessrecord 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
-
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. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
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
-