com.aspose.imaging
Class Shape

java.lang.Object
  extended by com.aspose.imaging.ObjectWithBounds
      extended by com.aspose.imaging.Shape
Direct Known Subclasses:
PolygonShape, RectangleProjectedShape

public abstract class Shape
extends ObjectWithBounds

The shape. A continuous set of points connected using a specific rule.


Constructor Summary
Shape()
           
 
Method Summary
abstract  PointF getCenter()
           Gets the shape's center.
abstract  ShapeSegment[] getSegments()
           Gets the shape segments.
abstract  boolean hasSegments()
           Gets a value indicating whether shape has segments.
 
Methods inherited from class com.aspose.imaging.ObjectWithBounds
getBounds, getBounds, getBounds, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shape

public Shape()
Method Detail

getCenter

public abstract PointF getCenter()

Gets the shape's center.

Value: The shape's center.


getSegments

public abstract ShapeSegment[] getSegments()

Gets the shape segments.

Value: The shape segments.


hasSegments

public abstract boolean hasSegments()

Gets a value indicating whether shape has segments.

Value: True if shape has segments; otherwise, false.