com.aspose.imaging.shapes
Class RectangleProjectedShape

java.lang.Object
  extended by com.aspose.imaging.ObjectWithBounds
      extended by com.aspose.imaging.Shape
          extended by com.aspose.imaging.shapes.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 Summary
RectangleProjectedShape()
           Initializes a new instance of the RectangleProjectedShape class.
RectangleProjectedShape(RectangleF rectangle)
           Initializes a new instance of the RectangleProjectedShape class.
 
Method Summary
 RectangleF getBounds()
           Gets the object's bounds.
 RectangleF getBounds(Matrix matrix)
           Gets the object's bounds.
 RectangleF getBounds(Matrix matrix, Pen pen)
           Gets the object's bounds.
 PointF getCenter()
           Gets the shape's center.
 PointF getLeftBottom()
           Gets the left bottom rectangle point.
 PointF getLeftTop()
           Gets the left top rectangle point.
 double getRectangleHeight()
           Gets the rectangle height.
 double getRectangleWidth()
           Gets the rectangle width.
 PointF getRightBottom()
           Gets the right bottom rectangle point.
 PointF getRightTop()
           Gets the right top rectangle point.
 boolean hasSegments()
           Gets a value indicating whether shape has segments.
 void transform(Matrix transform)
           Applies the specified transformation to the shape.
 
Methods inherited from class com.aspose.imaging.Shape
getSegments
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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

getBounds

public RectangleF getBounds()

Gets the object's bounds.

Value: The object's bounds.

Specified by:
getBounds in class ObjectWithBounds

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.

getCenter

public PointF getCenter()

Gets the shape's center.

Value: The shape's center.

Specified by:
getCenter in class Shape

getLeftBottom

public PointF getLeftBottom()

Gets the left bottom rectangle point.

Value: The left bottom rectangle point.


getLeftTop

public PointF getLeftTop()

Gets the left top rectangle point.

Value: The left top rectangle point.


getRectangleHeight

public double getRectangleHeight()

Gets the rectangle height.

Value: The rectangle height.


getRectangleWidth

public double getRectangleWidth()

Gets the rectangle width.

Value: The rectangle width.


getRightBottom

public PointF getRightBottom()

Gets the right bottom rectangle point.

Value: The right bottom rectangle point.


getRightTop

public PointF getRightTop()

Gets the right top rectangle point.

Value: The right top rectangle point.


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

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.