Packages

 

com.aspose.imaging.shapes

Class RectangleProjectedShape

  • Direct Known Subclasses:
    RectangleShape, TextShape


    public abstract class RectangleProjectedShape
    extends Shape

    Represents a shape which is projected over rectangle turned to a particular orientation. Specified by four points which can be rotated in space maintaining the same edges length and 90 degrees between adjacent edges.

    • Constructor Detail

      • RectangleProjectedShape

        public RectangleProjectedShape()

        Initializes a new instance of the RectangleProjectedShape class.

      • RectangleProjectedShape

        public RectangleProjectedShape(RectangleF rectangle)

        Initializes a new instance of the RectangleProjectedShape class.

        Parameters:
        rectangle - The rectangle to initialize from.
    • Method Detail

      • getLeftTop

        public PointF getLeftTop()

        Gets the left top rectangle point.

        Value: The left top rectangle point.
      • getRightTop

        public PointF getRightTop()

        Gets the right top rectangle point.

        Value: The right top rectangle point.
      • getLeftBottom

        public PointF getLeftBottom()

        Gets the left bottom rectangle point.

        Value: The left bottom rectangle point.
      • getRightBottom

        public PointF getRightBottom()

        Gets the right bottom rectangle point.

        Value: The right bottom rectangle point.
      • getCenter

        public PointF getCenter()

        Gets the shape's center.

        Value: The shape's center.
        Specified by:
        getCenter in class Shape
        Returns:
        The shape's center.
      • getBounds

        public RectangleF getBounds()

        Gets the object's bounds.

        Value: The object's bounds.
        Specified by:
        getBounds in class ObjectWithBounds
        Returns:
        The object's bounds.
      • getRectangleWidth

        public double getRectangleWidth()

        Gets the rectangle width.

        Value: The rectangle width.
      • getRectangleHeight

        public double getRectangleHeight()

        Gets the rectangle height.

        Value: The rectangle height.
      • hasSegments

        public boolean hasSegments()

        Gets a value indicating whether shape has segments.

        Value: True if shape has segments; otherwise, false.
        Specified by:
        hasSegments in class Shape
        Returns:
        True if shape has segments; otherwise, false.
      • getBounds

        public RectangleF getBounds(Matrix matrix)

        Gets the object's bounds.

        Specified by:
        getBounds in class ObjectWithBounds
        Parameters:
        matrix - The matrix to apply before bounds will be calculated.
        Returns:
        The estimated object's bounds.
      • getBounds

        public RectangleF getBounds(Matrix matrix,
                                    Pen pen)

        Gets the object's bounds.

        Specified by:
        getBounds in class ObjectWithBounds
        Parameters:
        matrix - The matrix to apply before bounds will be calculated.
        pen - The pen to use for object. This can influence the object's bounds size.
        Returns:
        The estimated object's bounds.
      • transform

        public void transform(Matrix transform)

        Applies the specified transformation to the shape.

        Specified by:
        transform in class ObjectWithBounds
        Parameters:
        transform - The transformation to apply.