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.


Field Summary
protected  Shapes m_shapes
           
 
Fields inherited from class com.aspose.slides.Shape
defaultConnectionPoints, emptyConnectionPoints, emptyShape, m_anchor, m_animationSettings, m_fillFormat, m_frame, m_lineFormat, m_link, m_nFSTVersion, m_options, m_parent, m_shadowFormat, m_shapesParent, m_tags, m_TextFrame, m_version
 
Constructor Summary
protected GroupShape(Slide parent)
           
protected GroupShape(Slide parent, EsSpGrContainer frame)
           
 
Method Summary
 TextFrame 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.
protected  IEsAnchor getAnchor()
           
 FillFormat getFillFormat()
          Returns null for a GroupShape.
protected  EsSpContainer getFrame()
           
protected  int getgeoBottom()
           
protected  int getgeoRight()
           
protected  EsSpGrContainer getGrFrame()
           
 LineFormat getLineFormat()
          Returns null for a GroupShape.
 int getMasterShapeId()
          Returns the unique Id of a master shape or 0 in case shape is not inherited from any master shapes.
 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 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.
protected  void updateShapeSizes()
           
protected  void updateTextColors()
           
 
Methods inherited from class com.aspose.slides.Shape
addLink, clearLink, createShapeElements, createShapeElements, getAnimationSettings, getConnectionSites, getConnectionSitesRaw, getHeight, getLink, getName, getOptions, getParent, getPlaceholder, getRotation0_360, getShadowFormat, getShapeRectangle, getTags, getTextFrame, getThreeDFormat, getWidth, getX, getY, getZOrderPosition, hasExternalData, isHidden, isMasterTextHolder, isTextHolder, serialize, setHeight, setHidden, setName, setWidth, setX, setY, shouldDraw, zOrder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_shapes

protected Shapes m_shapes
Constructor Detail

GroupShape

protected GroupShape(Slide parent)

GroupShape

protected GroupShape(Slide parent,
                     EsSpGrContainer frame)
Method Detail

getFrame

protected EsSpContainer getFrame()
Overrides:
getFrame in class Shape

getGrFrame

protected EsSpGrContainer getGrFrame()

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

updateShapeSizes

protected void updateShapeSizes()

updateTextColors

protected void updateTextColors()

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

getAnchor

protected IEsAnchor getAnchor()
Overrides:
getAnchor in class Shape

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.

getgeoRight

protected int getgeoRight()
Overrides:
getgeoRight in class Shape

getgeoBottom

protected int getgeoBottom()
Overrides:
getgeoBottom in class Shape

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
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