|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object Document.ImageID Document.ImageIDnumerical
public class ImageIDnumerical
Class representing a numerical ID.
Constructor Summary | |
---|---|
ImageIDnumerical(int id)
Copy constructor. |
|
ImageIDnumerical(java.lang.String id)
Creates a new ID using a string. |
Method Summary | |
---|---|
int |
compareTo(ImageID id)
Compares this object with the specified object for order. |
static ImageID |
getGlobalIdReg(ImageID idI,
ImageID idR)
Computes the global ID of a region (including the image ID). |
static ImageID |
getIdImg(ImageID id)
Computes the image ID from the region global ID. |
static ImageID |
getIdReg(ImageID id)
Computes the region (local) ID from the region global ID. |
int |
size()
The number of elements in the ID. |
java.lang.String |
toString()
Returns a string representation of this ID. |
Methods inherited from class Document.ImageID |
---|
equals, equals, hashCode, isErrorDB, isErrorExtract, isErrorFile, isErrorGeneric, isErrorID, isErrorNoImageFile, isErrorPath, isErrorStream, isErrorURL, isExtrOK, isValid |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ImageIDnumerical(java.lang.String id)
id
- String containing the ID.public ImageIDnumerical(int id)
id
- numerical ID.Method Detail |
---|
public int size()
size
in class ImageID
public java.lang.String toString()
toString
in class java.lang.Object
public int compareTo(ImageID id)
compareTo
in interface java.lang.Comparable<ImageID>
compareTo
in class ImageID
id
- ID to be compared.
public static ImageID getGlobalIdReg(ImageID idI, ImageID idR)
idI
- image ID.idR
- region (local) ID.
public static ImageID getIdImg(ImageID id)
id
- region global ID.
public static ImageID getIdReg(ImageID id)
id
- region global ID.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |