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.presentations.presentation.slides.slide.pgshapes
Class PgShape

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

All Implemented Interfaces:
  application.resource.com.ComExceptionConstants

public class PgShape
extends Shape

幻灯片中的浮动对象。

Field Summary

Fields inherited from interface 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, NO_ARROW_STYLE, NO_BOOK_NAME, NO_BUILDER, NO_CONNECTOR_TYPE, NO_DOCFIELDNAME, NO_MACRO_FOUND, NO_OBJECT, NO_PATH_NAME, 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`

Method Summary
`ActionSetting` | `getActionSetting()` 获取该浮动对象的动作设置信息。
`AnimationSetting` | `getAnimationSetting()` 获取该浮动对象的动画设置信息。
`ShapeText` | `getText()` 获取一个自选图形文本的实例。
`void` | `setPresetAnimation(int presetIndex)` 设置预设动画。

Methods inherited from class application.workbooks.workbook.shapes.Shape
`changeConnector, changeOrder, changeType, copyFormatInfo, delete, duplicate, flipHorizontal, flipVertical, getCanDelete, getConnectFormat, getEndPoint, getFillFormat, getHalfDrag, getHeight, getHeightDoubleValue, getIndex, getLineFormat, getName, getOrientationIndex, getPictureFormat, getRotateAngle, getShadowFormat, getStartPoint, getTextBoxAnchorPoint, getTextEffectFormat, getThreeDFormat, getType, getWidth, getWidthDoubleValue, isConnectable, isDocField, isEditable, isPicture, isPrintShape, isRatio, isSeal, isSelected, isTextEffect, move, moveByValue, pasteFormatInfo, reShape, reShape, select, selectToEdit, setCanDelete, setHalfDrag, setHeight, setHorizonAlignment, setLayoutIndex, setLevelDown, setLevelLeft, setLevelRight, setLevelUp, setObjectPosition, setOrientationIndex, setPosition, setPrintShape, setRatio, setRotateAngle, setRotateAngleByDegree, setSign, setSurroundType, setTextBoxAnchorPoint, setTextBoxMarginBottom, setTextBoxMarginLeft, setTextBoxMarginRight, setTextBoxMarginTop, setVerifySeal, setWidth, unSelect`

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

Method Detail

### getActionSetting

    public ActionSetting getActionSetting()

  获取该浮动对象的动作设置信息。

  Returns:
    ActionSetting，即动作设置

    例子:

         ActionSetting action=
         Presentations.getActivePresentation().getSlides().getSlide(0)
         .getShapes().getPgShape(1).getActionSetting();

         action.setHighlight(0,true);

  See Also:
    `ActionSetting`

### getAnimationSetting

    public AnimationSetting getAnimationSetting()

  获取该浮动对象的动画设置信息。

  Returns:
    AnimationSetting，即动画设置

    例子:

         AnimationSetting animation=
         Presentations.getActivePresentation().getSlides().getSlide(0)
         .getShapes().getPgShape(1).getAnimationSetting();

         System.out.println(animation.isLoop());

  See Also:
    `AnimationSetting`

### getText

    public ShapeText getText()

  获取一个自选图形文本的实例。

  Overrides:
    `getText` in class `Shape`
  Returns:
    ShapeText，即自选图形的文本

    例子:

         PgShape shape = Presentations.getActivePresentation().getSlides().getSlide(1).getShapes().getPgShape(0);
         ShapeText shapeText = shape.getText();
         shapeText.insertText(0,"1234567890");

  See Also:
    `ShapeText`

### setPresetAnimation

    public void setPresetAnimation(int presetIndex)

  设置预设动画。

  Parameters:
    `presetIndex` - 预设动画索引,其取值如以下常量：

             AnimationSettingConstants.PRESET_NONE =  0，无预设动画
             AnimationSettingConstants.PRESET_PUFFINGUP =  1，冒出
             AnimationSettingConstants.PRESET_SCALING =  2，横空出世
             AnimationSettingConstants.PRESET_THRILL_THROUGH =  3，快速闪过
             AnimationSettingConstants.PRESET_TELEGRAM =  4，电报
             AnimationSettingConstants.PRESET_DRIVE_IN =  5，驶入
             AnimationSettingConstants.PRESET_FLY_IN =  6，飞入
             AnimationSettingConstants.PRESET_CAMERAE =  7，照相
             AnimationSettingConstants.PRESET_FADE_OVER =  8，淡入淡出
             AnimationSettingConstants.PRESET_WIPE_OFF =  9，擦除
             AnimationSettingConstants.PRESET_APPEAR =  10，出现
             AnimationSettingConstants.PRESET_IN_ORDER =  12，顺序显示
             AnimationSettingConstants.PRESET_REVERSE_ORDER =  13，反序显示
             AnimationSettingConstants.PRESET_FLASH_ONCE =  14，昙花一现

        例子:

         Presentations.getActivePresentation().getSlides().getSlide(0)
         .getShapes().getPgShape(2).setPresetAnimation(AnimationSettingConstants.PRESET_FLY_IN);

  See Also:
    `AnimationSettingConstants`

Overview | Package | Class | Tree | Index | Help

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

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