public enum FitAttrState extends java.lang.Enum<FitAttrState>
枚举常量和说明 |
---|
DEFAULT |
DOUBLE_FIT |
HORIZONTAL_FIT |
NOT_FIT |
限定符和类型 | 字段和说明 |
---|---|
static int |
PADDING |
protected int |
resolution |
static int |
SCROLL_BAR_WIDTH |
限定符和类型 | 方法和说明 |
---|---|
protected double |
calScale(UNIT oldSize,
double newSize,
int resolution) |
java.lang.String |
description() |
double |
getHorizontalScale(UNIT oldWidth,
double newWidth,
int resolution,
boolean isFrozen) |
UNIT |
getPaperHeight(PaperSize ps,
int browserWidth,
int browserHeight,
boolean isFrozen)
获取纸张高度
|
UNIT |
getPaperWidth(PaperSize ps,
int browserWidth,
boolean isFrozen)
获取纸张宽度
|
int |
getState() |
double |
getVerticalScale(UNIT oldHeight,
double newHeight,
int resolution,
double horizontalScale,
boolean isFrozen) |
static FitAttrState |
parse(ReportFitAttr attr) |
static FitAttrState |
valueOf(java.lang.String name)
返回带有指定名称的该类型的枚举常量。
|
static FitAttrState[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final FitAttrState DEFAULT
public static final FitAttrState HORIZONTAL_FIT
public static final FitAttrState DOUBLE_FIT
public static final FitAttrState NOT_FIT
public static final int PADDING
public static final int SCROLL_BAR_WIDTH
protected int resolution
public static FitAttrState[] values()
for (FitAttrState c : FitAttrState.values()) System.out.println(c);
public static FitAttrState valueOf(java.lang.String name)
name
- 要返回的枚举常量的名称。java.lang.IllegalArgumentException
- 如果该枚举类型没有带有指定名称的常量java.lang.NullPointerException
- 如果参数为空值public static FitAttrState parse(ReportFitAttr attr)
public int getState()
protected double calScale(UNIT oldSize, double newSize, int resolution)
public double getHorizontalScale(UNIT oldWidth, double newWidth, int resolution, boolean isFrozen)
public double getVerticalScale(UNIT oldHeight, double newHeight, int resolution, double horizontalScale, boolean isFrozen)
public java.lang.String description()
public UNIT getPaperHeight(PaperSize ps, int browserWidth, int browserHeight, boolean isFrozen)
browserHeight
- 浏览器高度browserWidth
- 浏览器宽度ps
- 页面设置isFrozen
- 是否冻结