Packages

 

com.aspose.imaging.fileformats.cmx.objectmodel.specs

Class CmxRectangleSpec

  • java.lang.Object
    • com.aspose.imaging.fileformats.cmx.objectmodel.specs.CmxRectangleSpec
    • Constructor Summary

      Constructors 
      Constructor and Description
      CmxRectangleSpec() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      float getAngle()
      Gets the angle of rotation of the rectangle.
      float getCenterX()
      Gets the X coordinate for the center of the rectangle.
      float getCenterY()
      Gets the Y coordinate for the center of the rectangle.
      float getHeight()
      Gets the height of the rectangle.
      float getRadius()
      Gets the radius of rounded rectangle corners.
      float getWidth()
      Gets the width of the rectangle.
      void setAngle(float value)
      Sets the angle of rotation of the rectangle.
      void setCenterX(float value)
      Sets the X coordinate for the center of the rectangle.
      void setCenterY(float value)
      Sets the Y coordinate for the center of the rectangle.
      void setHeight(float value)
      Sets the height of the rectangle.
      void setRadius(float value)
      Sets the radius of rounded rectangle corners.
      void setWidth(float value)
      Sets the width of the rectangle.
      String toString()
      Returns a String that represents this instance.
    • Constructor Detail

      • CmxRectangleSpec

        public CmxRectangleSpec()
    • Method Detail

      • getCenterX

        public final float getCenterX()

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

        Returns:
        the X coordinate for the center of the rectangle.
      • setCenterX

        public final void setCenterX(float value)

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

        Parameters:
        value - the 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:
        the Y coordinate for the center of the rectangle.
      • setCenterY

        public final void setCenterY(float value)

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

        Parameters:
        value - the 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:
        the width of the rectangle.
      • setWidth

        public final void setWidth(float value)

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

        Parameters:
        value - the width of the rectangle.
      • getHeight

        public final float getHeight()

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

        Returns:
        the height of the rectangle.
      • setHeight

        public final void setHeight(float value)

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

        Parameters:
        value - the 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:
        the radius of rounded rectangle corners.
      • setRadius

        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:
        value - the radius of rounded rectangle corners.
      • getAngle

        public final float getAngle()

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

        Returns:
        the angle of rotation of the rectangle.
      • setAngle

        public final void setAngle(float value)

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

        Parameters:
        value - the angle of rotation of the rectangle.
      • toString

        public String toString()

        Returns a String that represents this instance.

        Overrides:
        toString in class Object
        Returns:
        A String that represents this instance.