Package omeis.providers.re.data
Class RegionDef
- java.lang.Object
-
- omeis.providers.re.data.RegionDef
-
- All Implemented Interfaces:
java.io.Serializable
public class RegionDef extends java.lang.Object implements java.io.SerializableIdentifies a rectangular region.- Since:
- 3.0-Beta4
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetHeight()Returns the height of the region.intgetWidth()Returns the width of the region.intgetX()Returns the x-coordinate of the top-left corner.intgetY()Returns the y-coordinate of the top-left corner.voidsetHeight(int height)Sets the height of the region.voidsetWidth(int width)Sets the width of the region.voidsetX(int x)Sets the x-coordinate of the top-left corner.voidsetY(int y)Sets the y-coordinate of the top-left corner.java.lang.StringtoString()Overridden to return the region as a string.
-
-
-
Constructor Detail
-
RegionDef
public RegionDef()
Creates a default instance.
-
RegionDef
public RegionDef(int x, int y, int width, int height)Creates a rectangular region.- Parameters:
x- The x-coordinate of the top-left corner.y- The y-coordinate of the top-left corner.width- The width of the region.height- The height of the region.
-
-
Method Detail
-
getX
public int getX()
Returns the x-coordinate of the top-left corner.- Returns:
- See above.
-
getY
public int getY()
Returns the y-coordinate of the top-left corner.- Returns:
- See above.
-
getWidth
public int getWidth()
Returns the width of the region.- Returns:
- See above.
-
getHeight
public int getHeight()
Returns the height of the region.- Returns:
- See above.
-
setX
public void setX(int x)
Sets the x-coordinate of the top-left corner.- Parameters:
x- The value to set.
-
setY
public void setY(int y)
Sets the y-coordinate of the top-left corner.- Parameters:
y- The value to set.
-
setWidth
public void setWidth(int width)
Sets the width of the region.- Parameters:
width- The value to set.
-
setHeight
public void setHeight(int height)
Sets the height of the region.- Parameters:
height- The value to set.
-
toString
public java.lang.String toString()
Overridden to return the region as a string.- Overrides:
toStringin classjava.lang.Object- See Also:
Object.toString()
-
-