CmxRectangleSpec

Inheritance: java.lang.Object

All Implemented Interfaces: com.aspose.imaging.fileformats.cmx.objectmodel.specs.ICmxObjectSpec

public class CmxRectangleSpec implements ICmxObjectSpec

Represents geometric info specified for a rectangle.

Constructors

ConstructorDescription
CmxRectangleSpec()

Methods

MethodDescription
getCenterX()Gets the X coordinate for the center of the rectangle.
setCenterX(float value)Sets the X coordinate for the center of the rectangle.
getCenterY()Gets the Y coordinate for the center of the rectangle.
setCenterY(float value)Sets the Y coordinate for the center of the rectangle.
getWidth()Gets the width of the rectangle.
setWidth(float value)Sets the width of the rectangle.
getHeight()Gets the height of the rectangle.
setHeight(float value)Sets the height of the rectangle.
getRadius()Gets the radius of rounded rectangle corners.
setRadius(float value)Sets the radius of rounded rectangle corners.
getAngle()Gets the angle of rotation of the rectangle.
setAngle(float value)Sets the angle of rotation of the rectangle.
toString()Returns a String that represents this instance.
equals(Object o)Check if objects are equal.
hashCode()Get hash code of the current object.

CmxRectangleSpec()

public CmxRectangleSpec()

getCenterX()

public final float getCenterX()

Gets the X coordinate for the center of the rectangle. Measures in common document distance units.

Returns: float - the X coordinate for the center of the rectangle.

setCenterX(float value)

public final void setCenterX(float value)

Sets the X coordinate for the center of the rectangle. Measures in common document distance units.

Parameters:

ParameterTypeDescription
valuefloatthe X coordinate for the center of the rectangle.

getCenterY()

public final float getCenterY()

Gets the Y coordinate for the center of the rectangle. Measures in common document distance units.

Returns: float - the Y coordinate for the center of the rectangle.

setCenterY(float value)

public final void setCenterY(float value)

Sets the Y coordinate for the center of the rectangle. Measures in common document distance units.

Parameters:

ParameterTypeDescription
valuefloatthe Y coordinate for the center of the rectangle.

getWidth()

public final float getWidth()

Gets the width of the rectangle. Measures in common document distance units.

Returns: float - the width of the rectangle.

setWidth(float value)

public final void setWidth(float value)

Sets the width of the rectangle. Measures in common document distance units.

Parameters:

ParameterTypeDescription
valuefloatthe width of the rectangle.

getHeight()

public final float getHeight()

Gets the height of the rectangle. Measures in common document distance units.

Returns: float - the height of the rectangle.

setHeight(float value)

public final void setHeight(float value)

Sets the height of the rectangle. Measures in common document distance units.

Parameters:

ParameterTypeDescription
valuefloatthe height of the rectangle.

getRadius()

public final float getRadius()

Gets the radius of rounded rectangle corners. If its value is 0 then the rectangle has not rounded corners. Measures in common document distance units.

Returns: float - the radius of rounded rectangle corners.

setRadius(float value)

public final void setRadius(float value)

Sets the radius of rounded rectangle corners. If its value is 0 then the rectangle has not rounded corners. Measures in common document distance units.

Parameters:

ParameterTypeDescription
valuefloatthe radius of rounded rectangle corners.

getAngle()

public final float getAngle()

Gets the angle of rotation of the rectangle. Measures in radians.

Returns: float - the angle of rotation of the rectangle.

setAngle(float value)

public final void setAngle(float value)

Sets the angle of rotation of the rectangle. Measures in radians.

Parameters:

ParameterTypeDescription
valuefloatthe angle of rotation of the rectangle.

toString()

public String toString()

Returns a String that represents this instance.

Returns: java.lang.String - A String that represents this instance.

equals(Object o)

public boolean equals(Object o)

Check if objects are equal.

Parameters:

ParameterTypeDescription
ojava.lang.ObjectThe other object.

Returns: boolean - The equality comparison result.

hashCode()

public int hashCode()

Get hash code of the current object.

Returns: int - The hash code.