public class OFDShapes extends Object
将AWT的 Shape 转换为OFD的路径绘制数据 AbbreviatedData
| Constructor and Description |
|---|
OFDShapes() |
| Modifier and Type | Method and Description |
|---|---|
static AbbreviatedData |
path(Shape shape)
转换 Java的图形对象为OFD路径对象
|
static RoundRectangle2D |
roundRect(int x,
int y,
int width,
int height,
int arcWidth,
int arcHeight)
创建圆角矩形
|
public static AbbreviatedData path(Shape shape)
shape - Java图形对象public static RoundRectangle2D roundRect(int x, int y, int width, int height, int arcWidth, int arcHeight)
x - 矩形左上角X坐标y - 矩形左上角Y坐标width - 矩形宽度height - 矩形高度arcWidth - 水平圆角半径arcHeight - 垂直圆角半径Copyright © 2026. All rights reserved.