ShapeFrame

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.slides.IShapeFrame

public class ShapeFrame implements IShapeFrame

Represents shape frame’s properties.

Constructors

ConstructorDescription
ShapeFrame(float x, float y, float width, float height, byte flipH, byte flipV, float rotationAngle)Creates new shape frame’s properties.

Methods

MethodDescription
getX()Returns the X coordinate of the upper-left corner of a frame.
getY()Returns the Y coordinate of the upper-left corner of a frame.
getWidth()Returns the width of a frame.
getHeight()Returns the height of a frame.
getRotation()Returns the number of degrees a frame is rotated around the z-axis.
getCenterX()Returns the X coordinate of a frame’s center.
getCenterY()Returns the Y coordinate of a frame’s center.
getFlipH()Determines whether a frame is flipped horizontally.
getFlipV()Determines whether a frame is flipped vertically.
getRectangle()Returns the coordinates of a frame.
deepClone()Clones
cloneT()Clones.
hashCode()
equals(Object obj)Returns a value indicating whether this instance is equal to a specified object.
equals(ShapeFrame value)Returns a value indicating whether this instance is equal to a specified object.

ShapeFrame(float x, float y, float width, float height, byte flipH, byte flipV, float rotationAngle)

public ShapeFrame(float x, float y, float width, float height, byte flipH, byte flipV, float rotationAngle)

Creates new shape frame’s properties.

Parameters:

ParameterTypeDescription
xfloatX coordinate of a frame.
yfloatY coordinate of a frame.
widthfloatWidth of a frame.
heightfloatHeight of a frame.
flipHbyteTrue if a frame flipped horizontally.
flipVbyteTrue if a frame flipped vertivally.
rotationAnglefloatNumber of degrees a frame is rotated.

getX()

public final float getX()

Returns the X coordinate of the upper-left corner of a frame. Read-only float.

Returns: float

getY()

public final float getY()

Returns the Y coordinate of the upper-left corner of a frame. Read-only float.

Returns: float

getWidth()

public final float getWidth()

Returns the width of a frame. Read-only float.

Returns: float

getHeight()

public final float getHeight()

Returns the height of a frame. Read-only float.

Returns: float

getRotation()

public final float getRotation()

Returns the number of degrees a frame is rotated around the z-axis. A positive value indicates clockwise rotation; a negative value indicates counterclockwise rotation. Read-only float.

Returns: float

getCenterX()

public final float getCenterX()

Returns the X coordinate of a frame’s center. Read-only float.

Returns: float

getCenterY()

public final float getCenterY()

Returns the Y coordinate of a frame’s center. Read-only float.

Returns: float

getFlipH()

public final byte getFlipH()

Determines whether a frame is flipped horizontally. Read-only NullableBool.

Returns: byte

getFlipV()

public final byte getFlipV()

Determines whether a frame is flipped vertically. Read-only NullableBool.

Returns: byte

getRectangle()

public final Rectangle2D.Float getRectangle()

Returns the coordinates of a frame. Read-only java.awt.geom.Rectangle2D.Float.

Returns: java.awt.geom.Rectangle2D.Float

deepClone()

public final Object deepClone()

Clones

Returns: java.lang.Object - Cloned shape frame.

cloneT()

public final IShapeFrame cloneT()

Clones.

Returns: IShapeFrame - Cloned shape frame.

hashCode()

public int hashCode()

Returns: int

equals(Object obj)

public boolean equals(Object obj)

Returns a value indicating whether this instance is equal to a specified object.

Parameters:

ParameterTypeDescription
objjava.lang.ObjectThe object to compare with this instance.

Returns: boolean - true if obj is a ShapeFrame that has the same value as this instance; otherwise, false.

equals(ShapeFrame value)

public final boolean equals(ShapeFrame value)

Returns a value indicating whether this instance is equal to a specified object.

Parameters:

ParameterTypeDescription
valueShapeFrameThe ShapeFRameEx to compare with this instance.

Returns: boolean - true if value is a ShapeFrame that has the same value as this instance; otherwise, false.