Record Class ScaleFactor
java.lang.Object
java.lang.Record
org.xhtmlrenderer.demo.browser.ScaleFactor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final doubleThe field for thefactorrecord component.static final doublestatic final doublestatic final doubleprivate final StringThe field for thezoomLabelrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionScaleFactor(double factor, String zoomLabel) Creates an instance of aScaleFactorrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doublefactor()Returns the value of thefactorrecord component.final inthashCode()Returns a hash code value for this object.booleantoString()Returns a string representation of this record class.Returns the value of thezoomLabelrecord component.
-
Field Details
-
factor
private final double factorThe field for thefactorrecord component. -
zoomLabel
The field for thezoomLabelrecord component. -
PAGE_WIDTH
public static final double PAGE_WIDTH- See Also:
-
PAGE_HEIGHT
public static final double PAGE_HEIGHT- See Also:
-
PAGE_WHOLE
public static final double PAGE_WHOLE- See Also:
-
-
Constructor Details
-
ScaleFactor
Creates an instance of aScaleFactorrecord class.- Parameters:
factor- the value for thefactorrecord componentzoomLabel- the value for thezoomLabelrecord component
-
-
Method Details
-
toString
-
isNotZoomed
public boolean isNotZoomed() -
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. -
factor
public double factor()Returns the value of thefactorrecord component.- Returns:
- the value of the
factorrecord component
-
zoomLabel
Returns the value of thezoomLabelrecord component.- Returns:
- the value of the
zoomLabelrecord component
-