com.aspose.slides
Class ShapeElement

java.lang.Object
  extended by com.aspose.slides.ShapeElement

public class ShapeElement
extends java.lang.Object

Represents the ShapeElement object.


Method Summary
 java.awt.Paint createBrush()
          Creates and returns a brush to fill an element or null if you don't have to.
 java.awt.Stroke createPen()
          Creates and returns a pen to draw an element or null if you don't have to.
 int getElementType()
          Returns information about which part of shape an element represents.
 ShapeElementFill getFill()
          Returns an element's fill information if getFillSource() == ShapeElementFillSource.OWN_FILL or null otherwise.
 int getFillSource()
          Returns information about how to fill an element.
 java.awt.geom.GeneralPath getGeneralPath()
          Returns the shape element's path.
 Shape getParentShape()
          Returns the Shape for which element was created.
 ShapeElementStroke getStroke()
          Returns an element's stroke information, if getStrokeSource() == ShapeElementStrokeSource.OWN_STROKE or null otherwise.
 int getStrokeSource()
          Returns information about how to stroke an element.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getParentShape

public Shape getParentShape()
Returns the Shape for which element was created.

Returns:
The Shape for which element was created. See Shape.

getGeneralPath

public java.awt.geom.GeneralPath getGeneralPath()
Returns the shape element's path.

Returns:
the shape element's path.

getElementType

public int getElementType()
Returns information about which part of shape an element represents.

Returns:
information about which part of shape an element represents. See ShapeElementType.

getFillSource

public int getFillSource()
Returns information about how to fill an element.

Returns:
information about how to fill an element. See ShapeElementFillSource.

getFill

public ShapeElementFill getFill()
Returns an element's fill information if getFillSource() == ShapeElementFillSource.OWN_FILL or null otherwise.

Returns:
an element's fill information. See ShapeElementFill.

getStrokeSource

public int getStrokeSource()
Returns information about how to stroke an element.

Returns:
information about how to stroke an element. See ShapeElementStrokeSource.

getStroke

public ShapeElementStroke getStroke()
Returns an element's stroke information, if getStrokeSource() == ShapeElementStrokeSource.OWN_STROKE or null otherwise.

Returns:
an element's stroke information. See ShapeElementStroke.

createBrush

public java.awt.Paint createBrush()
Creates and returns a brush to fill an element or null if you don't have to.

Returns:
brush to fill an element or null.

createPen

public java.awt.Stroke createPen()
Creates and returns a pen to draw an element or null if you don't have to.

Returns:
pen to draw an element or null.