Class ImageLayoutInformation
java.lang.Object
ro.sync.exml.view.graphics.Rectangle
ro.sync.exml.workspace.api.images.handlers.ImageLayoutInformation
- All Implemented Interfaces:
Shape
Information about an image's dimensions and baseline.
- Since:
- 18
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionImageLayoutInformation
(int x, int y, int width, int height) Information about an image.ImageLayoutInformation
(int x, int y, int width, int height, int ascend) Information about an image. -
Method Summary
-
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
Description copied from class:Rectangle
Returns aString
representing thisRectangle
and its values. -
equals
Description copied from class:Rectangle
Checks whether two rectangles are equal.The result is
true
if and only if the argument is notnull
and is aRectangle
object that has the same top-left corner, width, and height as thisRectangle
. -
hashCode
public int hashCode()
-