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 a shapes on a slide.


Method Summary
 void addTextFrame(java.lang.String text)
          Adds a new TextFrame to a shape.
 java.lang.String getAlternativeText()
          Returns the alternative text associated with a shape in a Web presentation.
 FillFormat getFillFormat()
          Returns null for a GroupShape.
 LineFormat getLineFormat()
          Returns null for a GroupShape.
 int getRotation()
          Returns the number of degrees the specified group is rotated around the z-axis.
 Shapes getShapes()
          Returns the collection of shapes inside the group.
 boolean isFlipH()
          Determines whether the group is flipped horizontally.
 boolean isFlipV()
          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 setFlipH(boolean value)
          Flips the group horizontally.
 void setFlipV(boolean value)
          Flips the group vertically.
 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, getName, getParent, getPlaceholder, getShadowFormat, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, isHidden, isMasterTextHolder, isTextHolder, serialize, setHeight, setHidden, setName, 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()
Returns null for a GroupShape.

Specified by:
getLineFormat in interface IShapeFormat
Overrides:
getLineFormat in class Shape
Returns:
null

getFillFormat

public FillFormat getFillFormat()
Returns null for a GroupShape.

Specified by:
getFillFormat in interface IShapeFormat
Overrides:
getFillFormat in class Shape
Returns:
null

getShapes

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

Returns:
The shapes collection.

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 - the alternative text.

isFlipH

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

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

setFlipH

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

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

isFlipV

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

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

setFlipV

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

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

addTextFrame

public void addTextFrame(java.lang.String text)
                  throws PptEditException
Adds a new TextFrame to a shape. If shape already has TextFrame then do nothing.

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