|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectomeis.providers.re.data.RegionDef
public class RegionDef
Identifies a rectangular region.
Constructor Summary | |
---|---|
RegionDef()
Creates a default instance. |
|
RegionDef(int x,
int y,
int width,
int height)
Creates a rectangular region. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: 4.3.3-00d1137e-b2894
Copyright © 2009 The University of Dundee. All Rights Reserved.