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

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

## application.workbooks.workbook.presentations.presentation.slide.pgshapes
类 PgShape

    java.lang.Object
      application.workbooks.workbook.shapes.Shape
          application.workbooks.workbook.presentations.presentation.slide.pgshapes.PgShape

    public class PgShape

extends Shape

该类定义了对简报制作中的单个图形对象的一些操作，如设置得到动作设置等

自从：
  V1.31

方法摘要
`application.workbooks.workbook.presentations.presentation.slide.ActionSetting` | `getActionSetting(int mouseType)` 得到其动作设置
`void` | `setActionSetting(application.workbooks.workbook.presentations.presentation.slide.ActionSetting actionSetting)` 动作设置

从类 application.workbooks.workbook.shapes.Shape 继承的方法
`addMouseListener, beginEdit, changeConnector, changeOrder, changePicture, changeType, compressPicture, copyFormatInfo, delete, duplicate, flipHorizontal, flipVertical, getAlternativeText, getCanDelete, getConnectFormat, getDataObject, getEndPoint, getFillAttribute, getHalfDrag, getHeight, getLineFormat, getName, getNodes, getPictureFormat, getPlugID, getPlugInData, getPlugSubID, getRotateAngle, getShadowFormat, getShapeContent, getShapeText, getStartPoint, getTextEffectFormat, getTextFrame, getThreeDFormat, getType, getWidth, hasTextFrame, isCanFlip, isCanGroup, isCanRotate, isCanSelectInProtect, isConnectable, isEditable, isGroup, isLockLocation, isLockRatio, isLockSize, isPicture, isPrintShape, isSeal, isSelected, isTextEffect, move, moveByValue, pasteFormatInfo, removeMouseListener, reShape, saveAs, select, setAlternativeText, setCanDelete, setCanFlip, setCanGroup, setCanRotate, setCanSelectInProtect, setDefaultProperties, setFillAttribute, setHalfDrag, setHeight, setLocation, setLockLocation, setLockPosition, setLockRatio, setLockSize, setPlugID, setPlugInData, setPlugSubID, setPrintShape, setRotateAngle, setRotateAngleByDegree, setSeal, setWidth, stopEdit, unSelect`

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

方法详细信息

### getActionSetting

    public application.workbooks.workbook.presentations.presentation.slide.ActionSetting getActionSetting(int mouseType)

  得到其动作设置

  参数：
    `mouseType` - 得到鼠标类型，其取值为如下常量：

         ActionSettingConstants.ACTIONMETHODS_MOUSECLICK = 0：点击
         ActionSettingConstants.ACTIONMETHODS_MOUSEOVER = 1：移过

  返回：
    动作设置

    例子：

         PgShapes shapes =  Application.getWorkbooks().getActiveWorkbook().getActiveShapes();
         PgShape shape = shapes.addShape(ShapeConstants.SHAPE_CLOUD_CALLOUT, 120, 130, 220, 250);
         ActionSetting set0 =shape.getActionSetting(ActionSettingConstants.ACTIONMETHODS_MOUSECLICK);
         set0.setRunMacro("Module1.a");
         set0.setPlaySound(true);
         set0.setSoundOption(ActionSettingConstants.SOUND_SCREECHINGBREAK);
         set0.setHighLight(true);
         shape.setActionSetting(set0);
         System.out.println(shape.getActionSetting(ActionSettingConstants.ACTIONMETHODS_MOUSECLICK).isHighLight());

  抛出：
    `MacroRunException` - 当参数越界
  另请参见：
    `ActionSettingConstants`

### setActionSetting

    public void setActionSetting(application.workbooks.workbook.presentations.presentation.slide.ActionSetting actionSetting)

  动作设置

  参数：
    `actionSetting` - 设置的动作(ActionSetting)

    例子：

         PgShapes shapes =  Application.getWorkbooks().getActiveWorkbook().getActiveShapes();
         PgShape shape = shapes.addShape(ShapeConstants.SHAPE_CLOUD_CALLOUT, 120, 130, 220, 250);
         ActionSetting set0 =shape.getActionSetting(ActionSettingConstants.ACTIONMETHODS_MOUSECLICK);
         set0.setRunMacro("Module1.a");
         set0.setPlaySound(true);
         set0.setSoundOption(ActionSettingConstants.SOUND_SCREECHINGBREAK);
         set0.setHighLight(true);
         shape.setActionSetting(set0);
         System.out.println(shape.getActionSetting(0).isHighLight());

  抛出：
    `MacroRunException` - 当参数为空

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

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

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