com.aspose.imaging.shapes
Class RectangleShape

java.lang.Object
  extended by com.aspose.imaging.ObjectWithBounds
      extended by com.aspose.imaging.Shape
          extended by com.aspose.imaging.shapes.RectangleProjectedShape
              extended by com.aspose.imaging.shapes.RectangleShape
Direct Known Subclasses:
EllipseShape

public class RectangleShape
extends RectangleProjectedShape

Represents a rectangular shape.


Constructor Summary
RectangleShape()
           Initializes a new instance of the RectangleShape class.
RectangleShape(RectangleF rectangle)
           Initializes a new instance of the RectangleShape class.
 
Method Summary
 ShapeSegment[] getSegments()
           Gets the shape segments.
 
Methods inherited from class com.aspose.imaging.shapes.RectangleProjectedShape
getBounds, getBounds, getBounds, getCenter, getLeftBottom, getLeftTop, getRectangleHeight, getRectangleWidth, getRightBottom, getRightTop, hasSegments, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RectangleShape

public RectangleShape()

Initializes a new instance of the RectangleShape class.


RectangleShape

public RectangleShape(RectangleF rectangle)

Initializes a new instance of the RectangleShape class.

Parameters:
rectangle - The rectangle.
Method Detail

getSegments

public ShapeSegment[] getSegments()

Gets the shape segments.

Value: The shape segments.

Specified by:
getSegments in class Shape