com.aspose.slides.pptx
Class ShapeEx

java.lang.Object
  extended by com.aspose.slides.pptx.ShapeEx
Direct Known Subclasses:
GeometryShapeEx, GraphicalObjectEx, GroupShapeEx

public class ShapeEx
extends java.lang.Object

Represents a shape on a slide.


Method Summary
 FillFormatEx getFillFormat()
          Returns the FillFormatEx object that contains fill formatting properties for a shape.
 ShapeFrameEx getFrame()
           
 float getHeight()
          Returns the height of the shape.
 HyperlinkEx getHLinkClick()
          Returns the hyperlink defined for mouse click.
 HyperlinkEx getHLinkMouseOver()
          Returns the hyperlink defined for mouse over.
 LineFormatEx getLineFormat()
          Returns the LineFormatEx object that contains line formatting properties for a shape.
 BaseSlideEx getParent()
          Returns the parent slide of a shape.
 PlaceholderEx getPlaceholder()
           
 PresentationEx getPresentation()
          Returns the parent presentation of a slide.
 ShapeFrameEx getRawFrame()
           
 float getRotation()
           
 BaseSlideEx getSlide()
          Returns the parent slide of a shape.
 TextFrameEx getTextFrame()
          Returns a TextFrameEx object for a Shape.
 float getWidth()
          Returns the width of the shape.
 float getX()
           
 float getY()
          Returns the y-coordinate of the upper-left corner of the shape.
 int getZOrderPosition()
          Returns the position of a shape in the z-order. getShapes().get(0) returns the shape at the back of the z-order, and getShapes().get(getShapes().size() - 1) returns the shape at the front of the z-order.
 boolean isHidden()
          Determines whether the shape is hidden.
 boolean isTextHolder()
          Determines whether the shape is TextHolder.
 void setFrame(ShapeFrameEx value)
           
 void setHeight(float value)
          Sets the height of the shape.
 void setHidden(boolean value)
          Sets whether the shape is hidden.
 void setHLinkClick(HyperlinkEx value)
          Sets the hyperlink defined for mouse click.
 void setHLinkMouseOver(HyperlinkEx value)
          Sets the hyperlink defined for mouse over.
 void setRawFrame(ShapeFrameEx value)
           
 void setRotation(float value)
           
 void setWidth(float value)
          Sets the width of the shape.
 void setX(float value)
           
 void setY(float value)
          Sets the y-coordinate of the upper-left corner of the shape.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isTextHolder

public boolean isTextHolder()
Determines whether the shape is TextHolder.


getPlaceholder

public PlaceholderEx getPlaceholder()

getRawFrame

public ShapeFrameEx getRawFrame()

setRawFrame

public void setRawFrame(ShapeFrameEx value)

getFrame

public ShapeFrameEx getFrame()

setFrame

public void setFrame(ShapeFrameEx value)

getLineFormat

public LineFormatEx getLineFormat()
Returns the LineFormatEx object that contains line formatting properties for a shape.

Returns:
See LineFormatEx.

getFillFormat

public FillFormatEx getFillFormat()
Returns the FillFormatEx object that contains fill formatting properties for a shape.

Returns:
See FillFormatEx.

getHLinkClick

public HyperlinkEx getHLinkClick()
Returns the hyperlink defined for mouse click.

Returns:
See HyperlinkEx.

setHLinkClick

public void setHLinkClick(HyperlinkEx value)
Sets the hyperlink defined for mouse click.

Parameters:
value - See HyperlinkEx.

getHLinkMouseOver

public HyperlinkEx getHLinkMouseOver()
Returns the hyperlink defined for mouse over.

Returns:
See HyperlinkEx.

setHLinkMouseOver

public void setHLinkMouseOver(HyperlinkEx value)
Sets the hyperlink defined for mouse over.

Parameters:
value - See HyperlinkEx.

isHidden

public boolean isHidden()
Determines whether the shape is hidden.


setHidden

public void setHidden(boolean value)
Sets whether the shape is hidden.

Parameters:
value - true to hide the shape.

getParent

public BaseSlideEx getParent()
Returns the parent slide of a shape.

Returns:
See BaseSlideEx.

getZOrderPosition

public int getZOrderPosition()
Returns the position of a shape in the z-order. getShapes().get(0) returns the shape at the back of the z-order, and getShapes().get(getShapes().size() - 1) returns the shape at the front of the z-order.


getRotation

public float getRotation()

setRotation

public void setRotation(float value)

getX

public float getX()

setX

public void setX(float value)

getY

public float getY()
Returns the y-coordinate of the upper-left corner of the shape.


setY

public void setY(float value)
Sets the y-coordinate of the upper-left corner of the shape.

Parameters:
value - new y coordinate.

getWidth

public float getWidth()
Returns the width of the shape.


setWidth

public void setWidth(float value)
Sets the width of the shape.

Parameters:
value - new width value.

getHeight

public float getHeight()
Returns the height of the shape.


setHeight

public void setHeight(float value)
Sets the height of the shape.

Parameters:
value - new height value.

getTextFrame

public TextFrameEx getTextFrame()
Returns a TextFrameEx object for a Shape.

Returns:
See TextFrameEx.

getSlide

public BaseSlideEx getSlide()
Returns the parent slide of a shape.

See Also:
ISlideComponent.getSlide()

getPresentation

public PresentationEx getPresentation()
Returns the parent presentation of a slide.

See Also:
IPresentationComponent.getPresentation()