| 程序包 | 说明 |
|---|---|
| org.ofdrw.core.graph.pathObj | |
| org.ofdrw.core.graph.tight | |
| org.ofdrw.core.graph.tight.method |
| 限定符和类型 | 方法和说明 |
|---|---|
Command |
OptVal.toCmd()
转换为非紧缩标识
如果无法识别操作符,那么返还null
|
| 限定符和类型 | 方法和说明 |
|---|---|
List<Command> |
CT_Area.getCommands()
【必选】
获取 绘制指令序列(顺序决定了绘制图形)
移动点、画线、画圆弧等
|
| 限定符和类型 | 方法和说明 |
|---|---|
CT_Area |
CT_Area.addCommand(Command command)
【必选】
增加 绘制指令
移动点、画线、画圆弧等
|
CT_Area |
CT_Area.next(Command command)
连续绘制
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
Arc
圆弧
图 56圆弧的结构
|
class |
Close
自动闭合到当前路径的起始点,并以该点为当前点
表 37 图形对象描述方法
|
class |
CubicBezier
三次贝塞尔曲线
图 53 三次贝塞尔曲线结构
三次贝塞尔曲线公式
B(t) = (1-t)^3(P0) + 3t(1-t)^2(P1) + 3t^2(1-t)(P2) + t^3(P3) t∈[0,1]
|
class |
Line
线段
图 51 线段结构
|
class |
Move
移动节点
用于表示到新的绘制点指令
|
class |
QuadraticBezier
二次贝塞尔曲线结构
图 52 二次贝塞尔曲线结构
二次贝塞尔曲线公式
B(t) = (1 - t)^2 + 2t(1 - t)(P1) + t^2(P2)
t ∈ [0,1]
|
Copyright © 2021. All rights reserved.