Class OFDShapes

java.lang.Object
org.ofdrw.graphics2d.OFDShapes

public class OFDShapes extends Object
AWT路径转换工具

将AWT的 Shape 转换为OFD的路径绘制数据 AbbreviatedData

Since:
2023-01-18 16:13:58
Author:
权观宇
  • Constructor Details

    • OFDShapes

      public OFDShapes()
  • Method Details

    • path

      public static AbbreviatedData path(Shape shape)
      转换 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:
      圆角矩形图形对象