com.aspose.slides.android

Class SizeF

  • java.lang.Object
    • com.aspose.slides.android.SizeF


  • public class SizeF
    extends java.lang.Object
    Class for describing width and height dimensions in some arbitrary unit with floating-point values.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SizeF(float width, float height)
      Create a new SizeF instance.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      boolean equals(java.lang.Object obj)
      Check if this size is equal to another size.
      float getHeight()
      Get the height of the size.
      float getWidth()
      Get the width of the size.
      int hashCode()
      java.lang.String toString()
      Return the size represented as a string with the format "WxH"
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SizeF

        public SizeF(float width,
                     float height)
        Create a new SizeF instance.
        Parameters:
        width - The width of the size
        height - The height of the size
    • Method Detail

      • getWidth

        public float getWidth()
        Get the width of the size.
        Returns:
        width
      • getHeight

        public float getHeight()
        Get the height of the size.
        Returns:
        height
      • equals

        public boolean equals(java.lang.Object obj)
        Check if this size is equal to another size.

        Two sizes are equal if and only if both their widths and heights are the same.

        For this purpose, the width/height float values are considered to be the same if and only if the method Float.floatToIntBits(float) returns the identical int value when applied to each.

        Overrides:
        equals in class java.lang.Object
        Returns:
        true if the objects were equal, false otherwise
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Return the size represented as a string with the format "WxH"
        Overrides:
        toString in class java.lang.Object
        Returns:
        string representation of the size