Class OFDShapes
java.lang.Object
org.ofdrw.graphics2d.OFDShapes
AWT路径转换工具
将AWT的 Shape 转换为OFD的路径绘制数据 AbbreviatedData
- Since:
- 2023-01-18 16:13:58
- Author:
- 权观宇
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AbbreviatedData转换 Java的图形对象为OFD路径对象static RoundRectangle2DroundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) 创建圆角矩形
-
Constructor Details
-
OFDShapes
public OFDShapes()
-
-
Method Details
-
path
转换 Java的图形对象为OFD路径对象- Parameters:
shape- Java图形对象- Returns:
- OFD 图形轮廓数据
-
roundRect
public static RoundRectangle2D roundRect(int x, int y, int width, int height, int arcWidth, int arcHeight) 创建圆角矩形- Parameters:
x- 矩形左上角X坐标y- 矩形左上角Y坐标width- 矩形宽度height- 矩形高度arcWidth- 水平圆角半径arcHeight- 垂直圆角半径- Returns:
- 圆角矩形图形对象
-