public class ImageData extends DataObject
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ANNOTATIONS
Identifies the
ImageI.ANNOTATIONLINKS field. |
static java.lang.String |
DATASET_LINKS
Identifies the
ImageI.DATASETLINKS field. |
static java.lang.String |
DESCRIPTION
Identifies the
ImageI.DESCRIPTION field. |
static java.lang.String |
NAME
Identifies the
ImageI.NAME field. |
static java.lang.String |
PIXELS
Identifies the
ImageI.PIXELS field. |
Constructor and Description |
---|
ImageData()
Creates a new instance.
|
ImageData(omero.model.Image image)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.sql.Timestamp |
getAcquisitionDate()
Returns the acquisition date.
|
java.util.List<PixelsData> |
getAllPixels()
Returns all the sets of pixels related to this image.
|
java.util.Set |
getAnnotations()
Returns the annotations
|
java.util.Map<java.lang.Long,java.lang.Long> |
getAnnotationsCounts()
Returns the number of annotations linked to the object, key: id of the
user, value: number of annotation.
|
java.util.Set |
getDatasets()
Returns the datasets containing this image.
|
PixelsData |
getDefaultPixels()
Returns the default set of pixels.
|
java.lang.String |
getDescription()
Returns the description of the image.
|
long |
getFilesetId()
Returns the ID of the fileset to which this image belongs.
|
java.lang.String |
getFormat()
Returns the format of the image.
|
int |
getIndex()
Returns the index of the image within the multi-images file.
|
java.sql.Timestamp |
getInserted()
Returns the insertion time of the image.
|
long |
getInstrumentId()
Returns the id of the instrument if any.
|
java.lang.String |
getName()
Returns the name of the image.
|
java.lang.String |
getParentFilePath()
Returns the path to the file hosting the image.
|
java.lang.String |
getPathToFile()
Returns the path to the file.
|
omero.model.OriginalFile |
getReference()
Returns the reference to the file to register.
|
int |
getSeries()
Returns the series.
|
boolean |
isArchived()
Returns
true if the image has been archived,
false otherwise. |
boolean |
isFSImage()
Returns
true is the image has been imported the new
import strategy known as FS import, false if imported
using the previous import approach (data duplication). |
boolean |
isLifetime()
Returns
true if the image is a lifetime image,
false otherwise. |
void |
setAllPixels(java.util.List<PixelsData> newValue)
Sets the set of pixels related to this image.
|
void |
setAnnotations(java.util.Set newValue)
Sets the image's annotations.
|
void |
setDatasets(java.util.Set newValue)
Sets the datasets containing the image.
|
void |
setDefaultPixels(PixelsData defaultPixels)
Sets the default set of pixels.
|
void |
setDescription(java.lang.String description)
Sets the description of the image.
|
void |
setName(java.lang.String name)
Sets the name of the image.
|
void |
setParentFilePath(java.lang.String path,
int index)
Sets the path to the file hosting the image.
|
void |
setPathToFile(java.lang.String path)
Sets the path to the file.
|
void |
setReference(omero.model.OriginalFile reference)
Sets the reference to the file to register.
|
void |
setRegisteredFile(omero.model.Image object)
Sets the registered file.
|
asAnnotation, asChannel, asDataset, asExperimenter, asFolder, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlaneInfo, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getDetails, getGroupId, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
public static final java.lang.String NAME
ImageI.NAME
field.public static final java.lang.String DESCRIPTION
ImageI.DESCRIPTION
field.public static final java.lang.String PIXELS
ImageI.PIXELS
field.public static final java.lang.String ANNOTATIONS
ImageI.ANNOTATIONLINKS
field.public static final java.lang.String DATASET_LINKS
ImageI.DATASETLINKS
field.public ImageData()
public ImageData(omero.model.Image image)
image
- Back pointer to the Image
model object. Mustn't be
null
.java.lang.IllegalArgumentException
- If the object is null
.public void setPathToFile(java.lang.String path)
path
- The value to set.public void setReference(omero.model.OriginalFile reference)
reference
- The value to set.public omero.model.OriginalFile getReference()
public java.lang.String getPathToFile()
public void setParentFilePath(java.lang.String path, int index)
Leica
files.
Sets the index of the image within that file.path
- The path to set.index
- The index to set.public java.lang.String getParentFilePath()
Leica
files.public int getIndex()
public int getSeries()
public java.lang.String getFormat()
public void setRegisteredFile(omero.model.Image object)
object
- The object to store.public void setName(java.lang.String name)
name
- The name of the image. Mustn't be null
.java.lang.IllegalArgumentException
- If the name is null
.public java.lang.String getName()
public void setDescription(java.lang.String description)
description
- The description of the image.public java.lang.String getDescription()
public boolean isArchived()
true
if the image has been archived,
false
otherwise.public java.util.Map<java.lang.Long,java.lang.Long> getAnnotationsCounts()
null
if
no annotation.public java.sql.Timestamp getInserted()
public java.sql.Timestamp getAcquisitionDate()
public PixelsData getDefaultPixels()
public void setDefaultPixels(PixelsData defaultPixels)
defaultPixels
- The default set of pixels.public java.util.List<PixelsData> getAllPixels()
public void setAllPixels(java.util.List<PixelsData> newValue)
newValue
- The set of pixels' set.public java.util.Set getDatasets()
public void setDatasets(java.util.Set newValue)
newValue
- The set of datasets.public java.util.Set getAnnotations()
public void setAnnotations(java.util.Set newValue)
newValue
- The set of annotations.public boolean isLifetime()
true
if the image is a lifetime image,
false
otherwise.public long getInstrumentId()
public boolean isFSImage()
true
is the image has been imported the new
import strategy known as FS import, false
if imported
using the previous import approach (data duplication).public long getFilesetId()
isFSImage()
, for images imported pre-FS (data
duplication) -1
will be returned. Else - the long
value of the fileset ID.