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

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

## application.workbooks.workbook.shapes
类 ConnectFormat

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

    public class ConnectFormat

extends java.lang.Object

该类定义了设置连接线连接对象和设置连接点索引的方法。

方法摘要
`java.lang.String` | `getEndAim()` 返回连接线终止连接的对象
`int` | `getEndIndex()` 获取终止对象连接点的索引。
`java.lang.String` | `getStartAim()` 返回连接线起始连接的对象。
`int` | `getStartIndex()` 获取起始对象连接点的索引。
`void` | `setEndAim(java.lang.String endName)` 设置连接线终止连接的对象。
`void` | `setEndIndex(int index)` 设置终止连接点索引。
`void` | `setStartAim(java.lang.String startName)` 设置连接线起始连接的对象。
`void` | `setStartIndex(int index)` 设置起始连接点索引。

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

方法详细信息

### getEndAim

    public java.lang.String getEndAim()

  返回连接线终止连接的对象

  返回：
    连接线终止连接的对象名称

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);
         javax.swing.JOptionPane.showMessageDialog(null,"终止连接线的对象是"+format.getEndAim()) ;

### getEndIndex

    public int getEndIndex()

  获取终止对象连接点的索引。

  返回：
    连接点的索引

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);
         javax.swing.JOptionPane.showMessageDialog(null,"终止连接线的索引是"+format.getEndIndex()) ;

### getStartAim

    public java.lang.String getStartAim()

  返回连接线起始连接的对象。

  返回：
    连接线起始连接对象的名称

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);
         javax.swing.JOptionPane.showMessageDialog(null,"起始连接线的对象是"+format.getStartAim()) ;

### getStartIndex

    public int getStartIndex()

  获取起始对象连接点的索引。

  返回：
    连接点的索引

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);
         javax.swing.JOptionPane.showMessageDialog(null,"起始连接线的索引是"+format.getStartIndex()) ;

### setEndAim

    public void setEndAim(java.lang.String endName)

  设置连接线终止连接的对象。

  参数：
    `endName` - 连接线终止连接对象的名称

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);

### setEndIndex

    public void setEndIndex(int index)

  设置终止连接点索引。

  参数：
    `index` - 连接点索引

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);

### setStartAim

    public void setStartAim(java.lang.String startName)

  设置连接线起始连接的对象。

  参数：
    `startName` - 连接线起始连接对象的名称

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);

### setStartIndex

    public void setStartIndex(int index)

  设置起始连接点索引。

  参数：
    `index` - 连接点索引

    例子：

         Workbook book = Application.getWorkbooks().getActiveWorkbook();
         Shapes shapes = book.getActiveShapes() ;
         Shape rectangle = shapes.addShape(ShapeConstants.SHAPE_RECTANGLE,27.0,74.0,278.0,217.0);
         Shape ellipse = shapes.addShape(ShapeConstants.SHAPE_OVAL,582.0,237.00002,841.0,387.0);
         Shape connect = shapes.addConnector(0,323.0,240.5,732.9018,370.59924);
         ConnectFormat format = connect.getConnectFormat();
         format.setStartAim("矩形 1");
         format.setStartIndex(3);
         format.setEndAim("椭圆 2");
         format.setEndIndex(5);

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

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

版权所有 2001-2008 无锡永中科技有限公司