Record Class KitMetrics
java.lang.Object
java.lang.Record
dev.boze.api.gui.kit.KitMetrics
- Record Components:
unit- Base spacing; layouts are expressed in multiples of ittextScale- Text scaleiconScale- Icon scalerowHeight- Height of one setting rowshadow- Whether text is drawn with a shadow
public record KitMetrics(double unit, double textScale, double iconScale, double rowHeight, boolean shadow)
extends Record
Sizes the built-in editor layouts are built from.
-
Constructor Summary
ConstructorsConstructorDescriptionKitMetrics(double unit, double textScale, double iconScale, double rowHeight, boolean shadow) Creates an instance of aKitMetricsrecord 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.doubleReturns the value of theiconScalerecord component.doubleReturns the value of therowHeightrecord component.booleanshadow()Returns the value of theshadowrecord component.doubleReturns the value of thetextScalerecord component.final StringtoString()Returns a string representation of this record class.doubleunit()Returns the value of theunitrecord component.
-
Constructor Details
-
KitMetrics
public KitMetrics(double unit, double textScale, double iconScale, double rowHeight, boolean shadow) Creates an instance of aKitMetricsrecord class.
-
-
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. -
unit
-
textScale
-
iconScale
-
rowHeight
-
shadow
-