com.aspose.slides
Class GroupShape

java.lang.Object
  extended by com.aspose.slides.Shape
      extended by com.aspose.slides.GroupShape
All Implemented Interfaces:
IShape, IShapeFormat
Direct Known Subclasses:
Table

public class GroupShape
extends Shape

Represents the group of shapes on a slide.


Method Summary
 TextFrame addTextFrame(java.lang.String text)
          Always throws PptEditException for GroupShape because it can't have TextFrame inside.
 java.lang.String getAlternativeText()
          Returns the alternative text associated with a shape in a Web presentation.
 FillFormat getFillFormat()
          Always returns null for a GroupShape because it can't be filled.
 LineFormat getLineFormat()
          Always returns null for a GroupShape because it can't have a border.
 int getMasterShapeId()
          Returns the unique Id of a master shape or 0 in case shape is not inherited from any master shapes.
 java.lang.String getName()
          Returns the name of a shape.
 int getRotation()
          Returns the number of degrees the specified group is rotated around the z-axis.
 int getShapeId()
          Returns the unique Id of a shape.
 Shapes getShapes()
          Returns the collection of shapes inside a group.
 boolean isFlipHorizontal()
          Determines whether the group is flipped horizontally.
 boolean isFlipVertical()
          Determines whether the group is flipped vertically.
 void setAlternativeText(java.lang.String value)
          Sets the alternative text associated with a shape in a Web presentation.
 void setFlipHorizontal(boolean value)
          Flips the group horizontally.
 void setFlipVertical(boolean value)
          Flips the group vertically.
 void setName(java.lang.String value)
          Sets the name of a shape.
 void setRotation(int value)
          Sets the number of degrees the specified group is rotated around the z-axis.
 
Methods inherited from class com.aspose.slides.Shape
addLink, clearLink, createShapeElements, createShapeElements, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getHeight, getLink, getParent, getPlaceholder, getProtection, getShadowFormat, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isHidden, isMasterTextHolder, isTextHolder, serialize, setHeight, setHidden, setProtection, setWidth, setX, setY, zOrder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLineFormat

public LineFormat getLineFormat()
Always returns null for a GroupShape because it can't have a border.

Specified by:
getLineFormat in interface IShapeFormat
Overrides:
getLineFormat in class Shape
Returns:
The LineFormat object.

getFillFormat

public FillFormat getFillFormat()
Always returns null for a GroupShape because it can't be filled.

Specified by:
getFillFormat in interface IShapeFormat
Overrides:
getFillFormat in class Shape
Returns:
The FillFormat object.

getShapes

public Shapes getShapes()
Returns the collection of shapes inside a group.


getRotation

public int getRotation()
Returns the number of degrees the specified group is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation.

Overrides:
getRotation in class Shape
Returns:
The rotation angle.

setRotation

public void setRotation(int value)
                 throws java.lang.Exception
Sets the number of degrees the specified group is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation.

Overrides:
setRotation in class Shape
Parameters:
value - new rotation angle.
Throws:
java.lang.Exception

getAlternativeText

public java.lang.String getAlternativeText()
Returns the alternative text associated with a shape in a Web presentation.

Specified by:
getAlternativeText in interface IShape
Overrides:
getAlternativeText in class Shape
Returns:
The alternative text.

setAlternativeText

public void setAlternativeText(java.lang.String value)
Sets the alternative text associated with a shape in a Web presentation.

Specified by:
setAlternativeText in interface IShape
Overrides:
setAlternativeText in class Shape
Parameters:
value - new alternative text.

getName

public java.lang.String getName()
Returns the name of a shape. Returns real name value only if name was explicitly set.

Overrides:
getName in class Shape
Returns:
The name of a shape.

setName

public void setName(java.lang.String value)
Sets the name of a shape.

Overrides:
setName in class Shape
Parameters:
value - the name of a shape.

isFlipHorizontal

public boolean isFlipHorizontal()
Determines whether the group is flipped horizontally.

Overrides:
isFlipHorizontal in class Shape
Returns:
true if the group is flipped horizontally.

setFlipHorizontal

public void setFlipHorizontal(boolean value)
Flips the group horizontally.

Overrides:
setFlipHorizontal in class Shape
Parameters:
value - true to flip the group horizontally.

isFlipVertical

public boolean isFlipVertical()
Determines whether the group is flipped vertically.

Overrides:
isFlipVertical in class Shape
Returns:
true if the group is flipped vertically.

setFlipVertical

public void setFlipVertical(boolean value)
Flips the group vertically.

Overrides:
setFlipVertical in class Shape
Parameters:
value - true to flip the group vertically.

getShapeId

public int getShapeId()
Returns the unique Id of a shape.

Overrides:
getShapeId in class Shape
Returns:
unique Id of a shape.

getMasterShapeId

public int getMasterShapeId()
Returns the unique Id of a master shape or 0 in case shape is not inherited from any master shapes.

Overrides:
getMasterShapeId in class Shape
Returns:
unique Id of a master shape or 0 in case shape is not inherited from any master shapes.

addTextFrame

public TextFrame addTextFrame(java.lang.String text)
                       throws PptEditException
Always throws PptEditException for GroupShape because it can't have TextFrame inside.

Overrides:
addTextFrame in class Shape
Parameters:
text - new text for a TextFrame.
Throws:
PptEditException