public interface RewritableDatastore extends Datastore
Datastore.SaveMode
Modifier and Type | Method and Description |
---|---|
void |
deleteAllImages()
Delete all images from the Datastore.
|
void |
deleteImage(Coords coords)
Delete an image from the Datastore.
|
void |
deleteImagesMatching(Coords coords)
Delete all images from the Datastore whose coordinates match the provided
Coords object, which may be underspecified.
|
void |
putImage(Image image)
Insert an image into the Datastore.
|
void |
setSummaryMetadata(SummaryMetadata metadata)
Set the SummaryMetadata.
|
freeze, getAnnotation, getSavePath, hasAnnotation, save, save, save, save, setName, setSavePath, setStorage
close, getAnyImage, getAxes, getAxisLength, getImage, getImagesIgnoringAxes, getImagesMatching, getMaxIndices, getName, getNextIndex, getNumImages, getSummaryMetadata, getUnorderedImageCoords, hasImage, isFrozen, registerForEvents, unregisterForEvents
void putImage(Image image) throws java.io.IOException
putImage
in interface Datastore
image
- Micro-Manager Image objectDatastoreFrozenException
- if the freeze() method has been called.java.lang.IllegalArgumentException
- if the image's axes do not match the
axes of images previously added to the Datastore. All images
in a Datastore are required to have the same set of axes in
their Coords objects.java.io.IOException
- if an IO error occursvoid setSummaryMetadata(SummaryMetadata metadata) throws java.io.IOException
setSummaryMetadata
in interface Datastore
metadata
- Object representing the summary metadataDatastoreFrozenException
- if the freeze() method has been called.java.io.IOException
- if an IO error occursvoid deleteImage(Coords coords) throws java.io.IOException
coords
- Coordinates of the image to remove.java.io.IOException
- if an IO error occurred.java.lang.IllegalArgumentException
- if the coords do not match any image.void deleteImagesMatching(Coords coords) throws java.io.IOException
<"z" = 9>
would delete all Images whose Z coordinate is 9. Calling this method
with an empty Coords object will delete every image in the Datastore,
as per deleteAllImages() except without posting a DatastoreClearedEvent.
This method may potentially remove no images.coords
- Potentially-underspecified coordinates of the image(s) to
remove.java.io.IOException
- if an IO error occurred.void deleteAllImages() throws java.io.IOException
java.io.IOException
- if an IO error occurred.