Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## application.workbooks.workbook.shapes
Class ConnectFormat

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

public class ConnectFormat
extends java.lang.Object

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

Method Summary
`int` | `getEndIndex()` 获取终止对象连接点的索引。
`int` | `getStartIndex()` 获取起始对象连接点的索引。
`void` | `setEndAim(java.lang.String endName)` 设置连接线终止连接的对象。
`void` | `setEndIndex(int index)` 设置终止连接点索引。
`void` | `setStartAim(java.lang.String startName)` 设置连接线起始连接的对象。
`void` | `setStartIndex(int index)` 设置起始连接点索引。

Methods inherited from class java.lang.Object
`equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### getEndIndex

    public int getEndIndex()

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

  Returns:
    连接点的索引

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         Shape shape = shapes.getShape("直连接线 1") ;
         ConnectFormat c1 = shape.getConnectFormat() ;
         javax.swing.JOptionPane.showMessageDialog(null,"终止连接线的索引是"+c1.getEndIndex()) ;

### getStartIndex

    public int getStartIndex()

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

  Returns:
    连接点的索引

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         Shape shape = shapes.getShape("直连接线 1") ;
         ConnectFormat c1 = shape.getConnectFormat() ;
         javax.swing.JOptionPane.showMessageDialog(null,"起始连接线的索引是"+c1.getStartIndex()) ;

### setEndAim

    public void setEndAim(java.lang.String endName)

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

  Parameters:
    `endName` - 连接线终止连接对象的名称

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         Shape shape = shapes.getShape("直连接线 1") ;
         ConnectFormat c1 = shape.getConnectFormat() ;
         c1.setEndAim("折角形 3") ;

### setEndIndex

    public void setEndIndex(int index)

  设置终止连接点索引。

  Parameters:
    `index` - 连接点索引

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         Shape shape = shapes.getShape("直连接线 1") ;
         ConnectFormat c1 = shape.getConnectFormat() ;
         c1.setEndIndex(3) ;

### setStartAim

    public void setStartAim(java.lang.String startName)

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

  Parameters:
    `startName` - 连接线起始连接对象的名称

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         Shape shape = shapes.getShape("直连接线 1") ;
         ConnectFormat c1 = shape.getConnectFormat() ;
         c1.setStartAim("矩形 2") ;

### setStartIndex

    public void setStartIndex(int index)

  设置起始连接点索引。

  Parameters:
    `index` - 连接点索引

    例子:

         Shapes shapes = Application.getWorkbooks().getActiveWorkbook().getActiveShapes() ;
         Shape shape = shapes.getShape("直连接线 1") ;
         ConnectFormat c1 = shape.getConnectFormat() ;
         c1.setStartIndex(1) ;

Overview | Package | Class | Tree | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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