java.lang.Object
java.lang.Record
org.xhtmlrenderer.css.parser.property.PageSize
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PageSizeISO A3 media: 297mm wide and 420mm highstatic final PageSizeIS0 A4 media: 210 mm wide and 297 mm highstatic final PageSizeISO A5 media: 148mm wide and 210 mm highstatic final PageSizeISO B3 media: 176mm wide by 250mm highstatic final PageSizeISO B4 media: 250mm wide by 353mm highstatic final PageSizeISO B5 media: 176mm wide by 250 highstatic final PageSizeNorth American ledger: 11 inches wide by 17 inches highstatic final PageSizeNorth American legal: 8.5 inches wide by 14 inches highstatic final PageSizeNorth American letter media: 8.5 inches wide and 11 inches high -
Constructor Summary
ConstructorsConstructorDescriptionPageSize(CSSPrimitiveValue width, CSSPrimitiveValue height) Creates an instance of aPageSizerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static @Nullable PageSizegetPageSize(String pageSize) final inthashCode()Returns a hash code value for this object.height()Returns the value of theheightrecord component.final StringtoString()Returns a string representation of this record class.width()Returns the value of thewidthrecord component.
-
Field Details
-
A5
ISO A5 media: 148mm wide and 210 mm high -
A4
IS0 A4 media: 210 mm wide and 297 mm high -
A3
ISO A3 media: 297mm wide and 420mm high -
B3
ISO B3 media: 176mm wide by 250mm high -
B4
ISO B4 media: 250mm wide by 353mm high -
B5
ISO B5 media: 176mm wide by 250 high -
LETTER
North American letter media: 8.5 inches wide and 11 inches high -
LEGAL
North American legal: 8.5 inches wide by 14 inches high -
LEDGER
North American ledger: 11 inches wide by 17 inches high
-
-
Constructor Details
-
PageSize
Creates an instance of aPageSizerecord class.- Parameters:
width- the value for thewidthrecord componentheight- the value for theheightrecord component
-
-
Method Details
-
getPageSize
-
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 withObjects::equals(Object,Object). -
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
-