Record Class LabelMeasure
java.lang.Object
java.lang.Record
ch.tocco.nice2.reporting.impl.sync.labelformat.LabelMeasure
public record LabelMeasure(BigDecimal horizontalPitch, BigDecimal verticalPitch, BigDecimal width, BigDecimal height, BigDecimal leftMargin, BigDecimal topMargin, int columns, int rows)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLabelMeasure(BigDecimal horizontalPitch, BigDecimal verticalPitch, BigDecimal width, BigDecimal height, BigDecimal leftMargin, BigDecimal topMargin, int columns, int rows) Creates an instance of aLabelMeasurerecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcolumns()Returns the value of thecolumnsrecord component.final booleanIndicates whether some other object is "equal to" this one.static LabelMeasurefromString(String measure) final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.Returns the value of thehorizontalPitchrecord component.Returns the value of theleftMarginrecord component.introws()Returns the value of therowsrecord component.Returns the value of thetopMarginrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theverticalPitchrecord component.width()Returns the value of thewidthrecord component.
-
Constructor Details
-
LabelMeasure
public LabelMeasure(BigDecimal horizontalPitch, BigDecimal verticalPitch, BigDecimal width, BigDecimal height, BigDecimal leftMargin, BigDecimal topMargin, int columns, int rows) Creates an instance of aLabelMeasurerecord class.- Parameters:
horizontalPitch- the value for thehorizontalPitchrecord componentverticalPitch- the value for theverticalPitchrecord componentwidth- the value for thewidthrecord componentheight- the value for theheightrecord componentleftMargin- the value for theleftMarginrecord componenttopMargin- the value for thetopMarginrecord componentcolumns- the value for thecolumnsrecord componentrows- the value for therowsrecord component
-
-
Method Details
-
fromString
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
horizontalPitch
Returns the value of thehorizontalPitchrecord component.- Returns:
- the value of the
horizontalPitchrecord component
-
verticalPitch
Returns the value of theverticalPitchrecord component.- Returns:
- the value of the
verticalPitchrecord component
-
width
Returns the value of thewidthrecord component.- Returns:
- the value of the
widthrecord component
-
height
Returns the value of theheightrecord component.- Returns:
- the value of the
heightrecord component
-
leftMargin
Returns the value of theleftMarginrecord component.- Returns:
- the value of the
leftMarginrecord component
-
topMargin
Returns the value of thetopMarginrecord component.- Returns:
- the value of the
topMarginrecord component
-
columns
public int columns()Returns the value of thecolumnsrecord component.- Returns:
- the value of the
columnsrecord component
-
rows
public int rows()Returns the value of therowsrecord component.- Returns:
- the value of the
rowsrecord component
-