@DoNotObfuscate
public class DocumentFormat
extends java.lang.Object
FormatUnit
![]() |
![]() |
Modifier and Type | Field and Description |
---|---|
static DocumentFormat |
A0_LANDSCAPE |
static DocumentFormat |
A0_PORTRAIT |
static DocumentFormat |
A1_LANDSCAPE |
static DocumentFormat |
A1_PORTRAIT |
static DocumentFormat |
A2_LANDSCAPE |
static DocumentFormat |
A2_PORTRAIT |
static DocumentFormat |
A3_LANDSCAPE |
static DocumentFormat |
A3_PORTRAIT |
static DocumentFormat |
A4_LANDSCAPE |
static DocumentFormat |
A4_PORTRAIT |
static DocumentFormat |
A5_LANDSCAPE |
static DocumentFormat |
A5_PORTRAIT |
static DocumentFormat |
A6_LANDSCAPE |
static DocumentFormat |
A6_PORTRAIT |
static DocumentFormat |
LETTER_LANDSCAPE |
static DocumentFormat |
LETTER_PORTRAIT |
Constructor and Description |
---|
DocumentFormat(double width,
double height,
FormatUnit unit) |
Modifier and Type | Method and Description |
---|---|
DocumentFormat |
asMillimeter()
This method converts the current instance based on any unit into
an instance based on Millimeter.
|
boolean |
equals(java.lang.Object obj) |
java.awt.Rectangle |
getAsRectangleInPoints()
This method converts the current document format into a rectangle in
the original Unit 'points'.
|
double |
getHeightInMillis() |
double |
getHeightInPoints() |
double |
getWidthInMillis() |
int |
hashCode() |
java.lang.String |
toString()
Showing the details of the format.
|
public static final DocumentFormat A0_LANDSCAPE
public static final DocumentFormat A0_PORTRAIT
public static final DocumentFormat A1_LANDSCAPE
public static final DocumentFormat A1_PORTRAIT
public static final DocumentFormat A2_LANDSCAPE
public static final DocumentFormat A2_PORTRAIT
public static final DocumentFormat A3_LANDSCAPE
public static final DocumentFormat A3_PORTRAIT
public static final DocumentFormat A4_LANDSCAPE
public static final DocumentFormat A4_PORTRAIT
public static final DocumentFormat A5_LANDSCAPE
public static final DocumentFormat A5_PORTRAIT
public static final DocumentFormat A6_LANDSCAPE
public static final DocumentFormat A6_PORTRAIT
public static final DocumentFormat LETTER_LANDSCAPE
public static final DocumentFormat LETTER_PORTRAIT
@Guarded public DocumentFormat(double width, double height, FormatUnit unit)
public java.awt.Rectangle getAsRectangleInPoints()
public DocumentFormat asMillimeter()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public double getWidthInMillis()
public double getHeightInMillis()
public double getHeightInPoints()
Copyright (C) PDFUnit.com. See here for license.