|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Document.Region
public abstract class Region
Abstract class representing a single region
Field Summary | |
---|---|
protected ImageID |
id
The ID of this region |
protected int |
size
The number of pixels in this region |
Constructor Summary | |
---|---|
Region(ImageID id)
Creates a region with a particular ID. |
Method Summary | |
---|---|
abstract double |
distance(Region r)
Abstract method for computing the distance to another region. |
ImageID |
getID()
Returns the region ID. |
int |
getSize()
Returns the size of the region (i.e., the number of its pixels). |
void |
setID(ImageID id)
Modifies the region ID. |
protected void |
setSize(int s)
Modifies the size of the region (i.e., the number of its pixels). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected int size
protected ImageID id
Constructor Detail |
---|
public Region(ImageID id)
id
- ID of the region.Method Detail |
---|
public ImageID getID()
public int getSize()
public void setID(ImageID id)
id
- new ID for the region.protected void setSize(int s)
s
- the size of the region.public abstract double distance(Region r)
r
- Region to be compared.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |