Class ImageLayoutInformation
- java.lang.Object
-
- ro.sync.exml.view.graphics.Rectangle
-
- ro.sync.exml.workspace.api.images.handlers.ImageLayoutInformation
-
-
Constructor Summary
Constructors Constructor Description ImageLayoutInformation(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Checks whether two rectangles are equal.int
getAscend()
Get the image ascend.int
hashCode()
void
setAscend(int ascend)
Set the ascend.java.lang.String
toString()
Returns aString
representing thisRectangle
and its values.
-
-
-
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 aString
representing thisRectangle
and its values.- Overrides:
toString
in classRectangle
- Returns:
- a
String
representing thisRectangle
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 notnull
and is aRectangle
object that has the same top-left corner, width, and height as thisRectangle
.- Overrides:
equals
in classRectangle
- Parameters:
obj
- theObject
to compare with thisRectangle
- Returns:
true
if the objects are equal;false
otherwise.- See Also:
Rectangle.equals(java.lang.Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classRectangle
- See Also:
Rectangle.hashCode()
-
-