ShapeElement

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IShapeElement

public class ShapeElement implements IShapeElement

Represents a part of shape with same outline and fill properties.

Methods

MethodDescription
getParentShape()Returns a Shape_PPT for which element was created.
getPathPoints()Gets an array of points that define the geometry of the element’s path.
getPathTypes()Gets an array of byte values that specify the type of each point in the element’s path.
getFillSource()Returns information about how to fill an element.
getStrokeSource()Returns information about how to stroke an element.

getParentShape()

public final Shape getParentShape()

Returns a Shape_PPT for which element was created. Read-only Shape.

Returns: Shape

getPathPoints()

public final Point2D.Float[] getPathPoints()

Gets an array of points that define the geometry of the element’s path.

Returns: java.awt.geom.Point2D.Float[]

getPathTypes()

public final byte[] getPathTypes()

Gets an array of byte values that specify the type of each point in the element’s path.

0 Indicates that the point is the start of a figure.

1 Indicates that the point is one of the two endpoints of a line.

3 Indicates that the point is an endpoint or control point of a cubic Bezier spline.

7 Masks all bits except for the three low-order bits, which indicate the point type.

16 Specifies that the corresponding segment is dashed.

32 Specifies that the point is a marker.

128 Specifies that the point is the last point in a closed subpath (figure).

129 Indicates a data point that is both a line segment endpoint and the last point of a closed subpath.

Returns: byte[]

getFillSource()

public final byte getFillSource()

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

Returns: byte

getStrokeSource()

public final byte getStrokeSource()

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

Returns: byte