public class RegionDef extends Object implements Serializable
Constructor and Description |
---|
RegionDef()
Creates a default instance.
|
RegionDef(int x,
int y,
int width,
int height)
Creates a rectangular region.
|
Modifier and Type | Method and Description |
---|---|
int |
getHeight()
Returns the height of the region.
|
int |
getWidth()
Returns the width of the region.
|
int |
getX()
Returns the x-coordinate of the top-left corner.
|
int |
getY()
Returns the y-coordinate of the top-left corner.
|
void |
setHeight(int height)
Sets the height of the region.
|
void |
setWidth(int width)
Sets the width of the region.
|
void |
setX(int x)
Sets the x-coordinate of the top-left corner.
|
void |
setY(int y)
Sets the y-coordinate of the top-left corner.
|
String |
toString()
Overridden to return the region as a string.
|
public RegionDef()
public RegionDef(int x, int y, int width, int height)
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.public int getX()
public int getY()
public int getWidth()
public int getHeight()
public void setX(int x)
x
- The value to set.public void setY(int y)
y
- The value to set.public void setWidth(int width)
width
- The value to set.public void setHeight(int height)
height
- The value to set.public String toString()
toString
in class Object
Object.toString()
Version: 5.2.8-ice35-b57
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.