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, when FillSource == ShapeElementFillSource.OwnFill or null otherwise.
 int getFillSource()
           Returns information about how to fill an element.
 java.awt.geom.GeneralPath getGraphicsPath()
           Returns an element's path.
 Shape getParentShape()
           Returns a Shape for which element was created.
 ShapeElementStroke getStroke()
           Returns an element's stroke information, when StrokeSource == ShapeElementStrokeSource.OwnStroke 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 a Shape for which element was created. Read-only Aspose.Slides.Shape.


getGraphicsPath

public java.awt.geom.GeneralPath getGraphicsPath()

Returns an element's path. Read-only System.Drawing.Drawing2D.GraphicsPath.


getElementType

public int getElementType()

Returns information about which part of shape an element represents. Read-only Aspose.Slides.ShapeElementType.


getFillSource

public int getFillSource()

Returns information about how to fill an element. Read-only Aspose.Slides.ShapeElementFillSource.


getFill

public ShapeElementFill getFill()

Returns an element's fill information, when FillSource == ShapeElementFillSource.OwnFill or null otherwise. Read-only Aspose.Slides.ShapeElementFill.


getStrokeSource

public int getStrokeSource()

Returns information about how to stroke an element. Read-only Aspose.Slides.ShapeElementStrokeSource.


getStroke

public ShapeElementStroke getStroke()

Returns an element's stroke information, when StrokeSource == ShapeElementStrokeSource.OwnStroke or null otherwise. Read-only Aspose.Slides.ShapeElementStroke.


createBrush

public java.awt.Paint createBrush()

Creates and returns a brush to fill an element or null if you don't have to. Created brush belongs to caller, so it's up to you to dispose it when you don't need it anymore.

Returns:
System.Drawing.Brush object.

createPen

public java.awt.Stroke createPen()

Creates and returns a pen to draw an element or null if you don't have to. Created pen belongs to caller, so it's up to you to dispose it when you don't need it anymore.

Returns:
System.Drawing.Pen object.