public class RectangleShape extends RectangleProjectedShape
Represents a rectangular shape.
Constructor and Description |
---|
RectangleShape()
Initializes a new instance of the
RectangleShape class. |
RectangleShape(RectangleF rectangle)
Initializes a new instance of the
RectangleShape class. |
Modifier and Type | Method and Description |
---|---|
ShapeSegment[] |
getSegments()
Gets the shape segments.
|
getBounds, getBounds, getBounds, getCenter, getLeftBottom, getLeftTop, getRectangleHeight, getRectangleWidth, getRightBottom, getRightTop, hasSegments, transform
public RectangleShape()
Initializes a new instance of the RectangleShape
class.
public RectangleShape(RectangleF rectangle)
Initializes a new instance of the RectangleShape
class.
rectangle
- The rectangle.public ShapeSegment[] getSegments()
Gets the shape segments.
Value: The shape segments.getSegments
in class Shape