public class RatingAnnotationData extends AnnotationData
Modifier and Type | Field and Description |
---|---|
static String |
INSIGHT_RATING_NS
The name space used to identify the archived annotation linked to a set
of pixels.
|
static int |
LEVEL_FIVE
Indicates the object is rated with five stars.
|
static int |
LEVEL_FOUR
Indicates the object is rated with four stars.
|
static int |
LEVEL_ONE
Indicates the object is rated with one star.
|
static int |
LEVEL_THREE
Indicates the object is rated with three stars.
|
static int |
LEVEL_TWO
Indicates the object is rated with two stars.
|
static int |
LEVEL_ZERO
Indicates the object is not rated.
|
FILE_TRANSFER_NS
Constructor and Description |
---|
RatingAnnotationData()
Creates a new instance of value
LEVEL_ZERO . |
RatingAnnotationData(int value)
Creates a new instance.
|
RatingAnnotationData(omero.model.LongAnnotation annotation)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
getContent()
Returns the rating value.
|
String |
getContentAsString()
Returns the rating value as a string.
|
int |
getRating()
Returns the rating value.
|
void |
setContent(Object content)
Sets the text annotation.
|
void |
setRating(int value)
Sets the rating value.
|
getDescription, getLastModified, getNameSpace, setDescription, setNameSpace
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, canAnnotate, 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 String INSIGHT_RATING_NS
public static final int LEVEL_ZERO
public static final int LEVEL_ONE
public static final int LEVEL_TWO
public static final int LEVEL_THREE
public static final int LEVEL_FOUR
public static final int LEVEL_FIVE
public RatingAnnotationData()
LEVEL_ZERO
.public RatingAnnotationData(int value)
value
- The rating value. One of the contants defined by this class.public RatingAnnotationData(omero.model.LongAnnotation annotation)
annotation
- The LongAnnotation
object corresponding to this
DataObject
. Mustn't be null
.public int getRating()
public void setRating(int value)
value
- The value to set. Must be One of the constants defined by this
class.public Object getContent()
getContent
in class AnnotationData
AnnotationData.getContent()
public String getContentAsString()
getContentAsString
in class AnnotationData
AnnotationData.getContentAsString()
public void setContent(Object content)
setContent
in class AnnotationData
content
- The value to set.AnnotationData.setContent(Object)
Version: 5.1.3-ice35-b52
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.