public class PaperSize
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable
构造器和说明 |
---|
PaperSize()
Creates a A4 paper size.
|
PaperSize(UNIT width,
UNIT height)
初始化一个指定width & height的纸张大小
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.Object |
clone()
Clone
|
boolean |
equals(java.lang.Object obj)
Equals.
|
UNIT |
getHeight()
获取UNIT单位的纸张高度
|
UNIT |
getWidth()
获取UNIT单位的纸张宽度
|
int |
hashCode() |
PaperSize |
rotate()
Gets the paper size if the area is rotated (landscape mode).
|
void |
setHeight(UNIT height)
设置纸张高度
|
void |
setWidth(UNIT width)
设置纸张宽度
|
java.lang.String |
toString() |
public static final PaperSize PAPERSIZE_9X11
public static final PaperSize PAPERSIZE_10X11
public static final PaperSize PAPERSIZE_10X14
public static final PaperSize PAPERSIZE_11X17
public static final PaperSize PAPERSIZE_15x11
public static final PaperSize PAPERSIZE_LETTER
public static final PaperSize PAPERSIZE_NOTE
public static final PaperSize PAPERSIZE_LEGAL
public static final PaperSize PAPERSIZE_A0
public static final PaperSize PAPERSIZE_A1
public static final PaperSize PAPERSIZE_A2
public static final PaperSize PAPERSIZE_A3
public static final PaperSize PAPERSIZE_A3_XL
public static final PaperSize PAPERSIZE_A4
public static final PaperSize PAPERSIZE_A4_XL
public static final PaperSize PAPERSIZE_A4_ML
public static final PaperSize PAPERSIZE_A5
public static final PaperSize PAPERSIZE_A5_XL
public static final PaperSize PAPERSIZE_A6
public static final PaperSize PAPERSIZE_A7
public static final PaperSize PAPERSIZE_A8
public static final PaperSize PAPERSIZE_B0
public static final PaperSize PAPERSIZE_B1
public static final PaperSize PAPERSIZE_B2
public static final PaperSize PAPERSIZE_B3
public static final PaperSize PAPERSIZE_B4
public static final PaperSize PAPERSIZE_B4_JIS
public static final PaperSize PAPERSIZE_B5_JIS
public static final PaperSize PAPERSIZE_B6_JIS
public static final PaperSize PAPERSIZE_A3_ROTATE
public static final PaperSize PAPERSIZE_A4_ROTATE
public static final PaperSize PAPERSIZE_A5_ROTATE
public static final PaperSize PAPERSIZE_A6_ROTATE
public static final PaperSize PAPERSIZE_B4_JIS_ROTATE
public static final PaperSize PAPERSIZE_B5_JIS_ROTATE
public static final PaperSize PAPERSIZE_B6_JIS_ROTATE
public static final PaperSize PAPERSIZE_TABLOID
public static final PaperSize PAPERSIZE_LEDGER
public static final PaperSize PAPERSIZE_HALFLETTER
public static final PaperSize PAPERSIZE_EXECUTIVE
public static final PaperSize PAPERSIZE_FOLIO
public static final PaperSize PAPERSIZE_QUARTO
public static final PaperSize PAPERSIZE_MOBILE
public static final int PREDEFINED
public static final int USERDEFINED
public UNIT getWidth()
public void setWidth(UNIT width)
width
- UNIT为单位的宽度public UNIT getHeight()
public void setHeight(UNIT height)
height
- UNIT单位的高度public PaperSize rotate()
public boolean equals(java.lang.Object obj)
equals
在类中 java.lang.Object
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
clone
在类中 java.lang.Object
java.lang.CloneNotSupportedException
public int hashCode()
hashCode
在类中 java.lang.Object
public java.lang.String toString()
toString
在类中 java.lang.Object