public class RegionDef
extends java.lang.Object
implements java.io.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.
|
java.lang.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 java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.