Class OFDGraphics2DDrawParam
java.lang.Object
org.ofdrw.graphics2d.OFDGraphics2DDrawParam
-
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.OFDGraphics2DDrawParam(OFDGraphicsDocument docCtx, ST_Box area) 创建绘制参数 -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(CT_GraphicUnit<?> target) Deprecated.makeDrawParam()clone()复制绘制参数对象获取字体绘制上下文void设置颜色void设置前景色void设置描边属性static ST_Arraytrans(AffineTransform tx) 转为AWT变换矩阵AffineTransform为 OFD 类型变换矩阵ST_Array
-
Constructor Details
-
OFDGraphics2DDrawParam
创建绘制参数- Parameters:
docCtx- 文档上下文area- 工作区大小
-
OFDGraphics2DDrawParam
创建绘制参数若您需要使用该方法,请手动设置工作区
area否则默认为A4大小- Parameters:
docCtx- 文档上下文
-
-
Method Details
-
setStroke
-
setColor
-
setForeground
-
apply
Deprecated.makeDrawParam()在图元上应用绘制参数配置包括: 描边、变换矩阵、裁剪区域、颜色
- Parameters:
target- 目标图元
-
getFontRenderContext
获取字体绘制上下文字体绘制上线文使用hit中的绘制参数进行控制
code from apache batik: org.apache.batik.ext.awt.g2d.AbstractGraphics2D#getFontRenderContext
- Returns:
- 字体绘制上下文
-
clone
-
trans
转为AWT变换矩阵AffineTransform为 OFD 类型变换矩阵ST_Array- Parameters:
tx- AWT变换矩阵- Returns:
- OFD ST_Array
-
OFDGraphics2DDrawParam(OFDGraphicsDocument, ST_Box)