public interface Annotation
Modifier and Type | Method and Description |
---|---|
Datastore |
getDatastore()
Return the datastore to which this annotation is associated.
|
java.lang.String |
getFilename()
Deprecated.
this is an old name for
getTag() |
PropertyMap |
getGeneralAnnotation()
Return a PropertyMap of information stored by the Annotation that is not
specific to any one image.
|
PropertyMap |
getImageAnnotation(Coords coords)
Return a PropertyMap of information stored by this Annotation related to
the image at the specified coordinates.
|
java.lang.String |
getTag()
Return this annotation's tag.
|
void |
save()
Commit the changes to this annotation to disk.
|
void |
setGeneralAnnotation(PropertyMap newData)
Replace the data this Annotation has for the Datastore as a whole with the
provided PropertyMap.
|
void |
setImageAnnotation(Coords coords,
PropertyMap newData)
Replace the data this Annotation has for the specified Image with the
provided PropertyMap.
|
PropertyMap getImageAnnotation(Coords coords)
coords
- Coordinates of image to get data for.PropertyMap getGeneralAnnotation()
void setImageAnnotation(Coords coords, PropertyMap newData)
coords
- Coordinates of image whose data is to be updated.newData
- Updated PropertyMap of data to be stored in the Annotation
that pertains to the imagevoid setGeneralAnnotation(PropertyMap newData)
newData
- Updated PropertyMap of data to be stored in the Annotation
that is not specific to any one Image.@Deprecated java.lang.String getFilename()
getTag()
java.lang.String getTag()
Datastore getDatastore()
void save() throws java.io.IOException
java.io.IOException