Class ImageLayoutInformation

  • All Implemented Interfaces:
    Shape

    @API(type=EXTENDABLE,
         src=PUBLIC)
    public class ImageLayoutInformation
    extends Rectangle
    Information about an image's dimensions and baseline.
    Since:
    18
    • Constructor Detail

      • ImageLayoutInformation

        public ImageLayoutInformation​(int x,
                                      int y,
                                      int width,
                                      int height)
        Information about an image. No base line information is given.
        Parameters:
        x - The x coordinate.
        y - The y coordinate.
        width - The width.
        height - The height.
      • ImageLayoutInformation

        public ImageLayoutInformation​(int x,
                                      int y,
                                      int width,
                                      int height,
                                      int ascend)
        Information about an image.
        Parameters:
        x - The x coordinate.
        y - The y coordinate.
        width - The width.
        height - The height.
        ascend - The image ascend, -1 if unknown.
    • Method Detail

      • getAscend

        public int getAscend()
        Get the image ascend.
        Returns:
        Returns the ascend.
      • setAscend

        public void setAscend​(int ascend)
        Set the ascend.
        Parameters:
        ascend - The image ascend.
      • toString

        public java.lang.String toString()
        Description copied from class: Rectangle
        Returns a String representing this Rectangle and its values.
        Overrides:
        toString in class Rectangle
        Returns:
        a String representing this Rectangle object's coordinate and size values.
        See Also:
        Rectangle.toString()
      • equals

        public boolean equals​(java.lang.Object obj)
        Description copied from class: Rectangle
        Checks whether two rectangles are equal.

        The result is true if and only if the argument is not null and is a Rectangle object that has the same top-left corner, width, and height as this Rectangle.

        Overrides:
        equals in class Rectangle
        Parameters:
        obj - the Object to compare with this Rectangle
        Returns:
        true if the objects are equal; false otherwise.
        See Also:
        Rectangle.equals(java.lang.Object)