public class PdfUtils
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
PdfUtils.BackgroundSize |
构造器和说明 |
---|
PdfUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
drawBlockBorder(java.awt.Graphics2D g,
int x,
int y,
int width,
int height,
com.fr.third.v2.lowagie.text.pdf.BorderStyle borderStyle)
绘制block元素border
|
static boolean |
inClipArea(float rowStartY,
float rowEndY,
double startY,
double endY)
确认行是否在切割区域内
|
static void |
parseAndDrawBackground(java.awt.Graphics2D graphics,
java.awt.geom.Rectangle2D.Float rectangle,
java.util.Map<java.lang.String,java.lang.String> rules,
int fontsize,
int resolution)
解析并绘制背景
|
static PdfUtils.BackgroundSize |
parseBackgroundSize(java.lang.String value,
java.awt.geom.Rectangle2D.Float rectangle,
int imgWidth,
int imgHeight,
int fontsize,
int resolution) |
public static void parseAndDrawBackground(java.awt.Graphics2D graphics, java.awt.geom.Rectangle2D.Float rectangle, java.util.Map<java.lang.String,java.lang.String> rules, int fontsize, int resolution)
graphics
- 绘图对象rectangle
- 绘制区域rules
- 背景属性规则public static PdfUtils.BackgroundSize parseBackgroundSize(java.lang.String value, java.awt.geom.Rectangle2D.Float rectangle, int imgWidth, int imgHeight, int fontsize, int resolution)
public static boolean inClipArea(float rowStartY, float rowEndY, double startY, double endY)
rowStartY
- row起始位置rowEndY
- row结束位置startY
- 切割起始位置endY
- 切割结束位置public static void drawBlockBorder(java.awt.Graphics2D g, int x, int y, int width, int height, com.fr.third.v2.lowagie.text.pdf.BorderStyle borderStyle)
g
- 绘图对象x
- 横坐标y
- 纵坐标width
- 绘制区域宽度height
- 绘制区域高度borderStyle
- border属性