概述 | 软件包 | 类 | 使用 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法

## application.workbooks.workbook.shapes
类 FreeformBuilder

    java.lang.Object
      application.workbooks.workbook.shapes.FreeformBuilder

所有已实现的接口：
  application.resource.com.ComExceptionConstants

    public class FreeformBuilder

extends java.lang.Object
implements application.resource.com.ComExceptionConstants

该类定义了添加曲线和为曲线添加拐点的方法。 记录宏专用。

字段摘要

从接口 application.resource.com.ComExceptionConstants 继承的字段
`CANNOT_EDIT, CANNOT_MAKE_ARROW, DELETE_DOCFIELD, DELETE_SHAPE, DIRECTRY_NOT_FIND, ERROR_DOCFIELD, ERROR_MACRO_NAME, FILE_NOT_FIND, LOCKED_DOCFIELD, LOCKED_POSITION_DOCFIELD, NAME_NOT_VALID, NAME_TOO_LONG, NO_ARROW_STYLE, NO_BOOK_NAME, NO_BUILDER, NO_CONNECTOR_TYPE, NO_DOCFIELDNAME, NO_MACRO_FOUND, NO_OBJECT, NO_PARAMETER, NO_PATH_NAME, NO_PRINT, NO_PRINT_PREVIEW, NO_PRODUCT, NO_Seal, NO_Seal_File, NO_SELECTED_OBJECT, NO_SHAPE, NO_TOOLBAR, NO_UNDO_TIMES, NO_WINDOW, NO_WORKBOOK, NO_WORKBOOK_TYPE, NOT_CONNECT, NOT_IMAGE, NOT_PRESENTATION, NOT_SUPPORT_DIALOG_SHOW, NOT_SUPPORT_DIALOG_TYPE, NOT_TEXT_EFFECT, Repeat_Name, Seal_Sign, SHAPE_TYPE_ERROR, WRONG_FREEFORM_TYPE`

方法摘要
`void` | `addNode(double x1, double y1)` 为曲线添加拐点。
`void` | `addNode(int pointType, int segmentType, double x1, double y1, double x2, double y2, double x3, double y3)` 为曲线添加拐点。
`void` | `convertToShape()` 为曲线添加拐点。

从类 java.lang.Object 继承的方法
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

方法详细信息

### addNode

    public void addNode(double x1,
                        double y1)

  为曲线添加拐点。(此方法只适用于第一种曲线)

  参数：
    `x` - 拐点的x坐标值
    `y` - 拐点的y坐标值

    例子：

         Application.getWorkbooks().getActiveWorkbook().getActiveShapes().buildFreeform(FreeformConstants.CURVE);
         FreeformBuilder fb = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getFreeformBuilder() ;
         fb.addNode(8,86);
         fb.addNode(0,55);
         fb.addNode(79,0);
         fb.addNode(113,12);
         fb.addNode(147,23);
         fb.addNode(136,102);
         fb.addNode(144,133);
         fb.addNode(151,163);
         fb.addNode(177,144);
         fb.addNode(143,133);
         fb.addNode(109,121);
         fb.addNode(15,116);
         fb.addNode(8,86);
         fb.convertToShape();

### addNode

    public void addNode(int pointType,
                        int segmentType,
                        double x1,
                        double y1,
                        double x2,
                        double y2,
                        double x3,
                        double y3)

  为曲线添加拐点。(此方法只适用于第二第三种曲线)

  参数：
    `pointType` - 点的类型
    `segmentType` - 线段的类型
    `x1` - 拐点的x坐标值
    `y1` - 拐点的y坐标值
    `x2` - 左控制点的x坐标值
    `y2` - 左控制点的y坐标值
    `x3` - 右控制点的x坐标值
    `y3` - 右控制点的y坐标值

    例子：

         ActiveWorkbook.getActiveShapes().buildFreeform(FreeformConstants.SCRIBBLE);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(3,1,243.0,328.5,243.0,328.5,243.0,328.5);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(3,0,243.0,327.75,243.0,327.75,253.8413543701172,306.0672912597656);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(3,0,272.25,287.25,256.84832763671875,294.3143615722656,286.8094482421875,280.57196044921875);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(3,0,316.5,270.75,314.3907470703125,272.8592529296875,315.7839050292969,271.4660949707031);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(3,0,300.75,273.75,306.3303527832031,274.30255126953125,290.5829162597656,272.7432556152344);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(3,0,275.25,259.5,276.87188720703125,261.9328308105469,275.25,261.987548828125);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(3,0,277.5,284.25,277.1948547363281,283.02935791015625,277.5,284.25);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().addNode(0,0,277.5,284.25,277.5,284.25,277.5,284.25);
         ActiveWorkbook.getActiveShapes().getFreeformBuilder().ConvertToShape();

### convertToShape

    public void convertToShape()

  为曲线添加拐点。

  参数：
    `x` - 拐点的x坐标值
    `y` - 拐点的y坐标值

    例子：

         Application.getWorkbooks().getActiveWorkbook().getActiveShapes().buildFreeform(FreeformConstants.CURVE);
         FreeformBuilder fb = Application.getWorkbooks().getActiveWorkbook().getActiveShapes().getFreeformBuilder() ;
         fb.addNode(8,86);
         fb.addNode(0,55);
         fb.addNode(79,0);
         fb.addNode(113,12);
         fb.addNode(147,23);
         fb.addNode(136,102);
         fb.addNode(144,133);
         fb.addNode(151,163);
         fb.addNode(177,144);
         fb.addNode(143,133);
         fb.addNode(109,121);
         fb.addNode(15,116);
         fb.addNode(8,86);
         fb.convertToShape();

概述 | 软件包 | 类 | 使用 | 树 | 索引 | 帮助

上一个类 下一个类 | 框架 无框架
摘要： 嵌套 | 字段 | 构造函数 | 方法 | 详细信息： 字段 | 构造函数 | 方法