Class ImageLayoutInformation

java.lang.Object
ro.sync.exml.view.graphics.Rectangle
ro.sync.exml.workspace.api.images.handlers.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 Details

    • 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 Details

    • 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 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:
    • equals

      public boolean equals(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:
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Rectangle
      See Also: