Package fr.igred.omero.annotations
Interface RatingAnnotation
-
- All Superinterfaces:
Annotation,ContainerLinked,HCSLinked,ImageLinked,RemoteObject
- All Known Implementing Classes:
RatingAnnotationWrapper
public interface RatingAnnotation extends Annotation
Interface to handle Rating Annotations on OMERO.
-
-
Field Summary
Fields Modifier and Type Field Description static intLEVEL_FIVEIndicates the object is rated with five stars.static intLEVEL_FOURIndicates the object is rated with four stars.static intLEVEL_ONEIndicates the object is rated with one star.static intLEVEL_THREEIndicates the object is rated with three stars.static intLEVEL_TWOIndicates the object is rated with two stars.static intLEVEL_ZEROIndicates the object is not rated.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RatingAnnotationDataasDataObject()Returns aRatingAnnotationDatacorresponding to the handled object.intgetRating()Returns the rating value.voidsetRating(int value)Sets the rating value.-
Methods inherited from interface fr.igred.omero.annotations.Annotation
countAnnotationLinks, getDescription, getFolders, getLastModified, getNameSpace, setDescription, setNameSpace
-
Methods inherited from interface fr.igred.omero.ContainerLinked
getDatasets, getProjects
-
Methods inherited from interface fr.igred.omero.HCSLinked
getPlateAcquisitions, getPlates, getScreens, getWells
-
Methods inherited from interface fr.igred.omero.ImageLinked
getImages
-
Methods inherited from interface fr.igred.omero.RemoteObject
canAnnotate, canChgrp, canChown, canDelete, canEdit, canLink, getCreated, getGroupId, getId, getOwner, saveAndUpdate
-
-
-
-
Field Detail
-
LEVEL_ZERO
static final int LEVEL_ZERO
Indicates the object is not rated.- See Also:
- Constant Field Values
-
LEVEL_ONE
static final int LEVEL_ONE
Indicates the object is rated with one star.- See Also:
- Constant Field Values
-
LEVEL_TWO
static final int LEVEL_TWO
Indicates the object is rated with two stars.- See Also:
- Constant Field Values
-
LEVEL_THREE
static final int LEVEL_THREE
Indicates the object is rated with three stars.- See Also:
- Constant Field Values
-
LEVEL_FOUR
static final int LEVEL_FOUR
Indicates the object is rated with four stars.- See Also:
- Constant Field Values
-
LEVEL_FIVE
static final int LEVEL_FIVE
Indicates the object is rated with five stars.- See Also:
- Constant Field Values
-
-
Method Detail
-
asDataObject
RatingAnnotationData asDataObject()
Returns aRatingAnnotationDatacorresponding to the handled object.- Specified by:
asDataObjectin interfaceAnnotation- Specified by:
asDataObjectin interfaceRemoteObject- Returns:
- See above.
-
getRating
int getRating()
Returns the rating value.- Returns:
- See above.
-
setRating
void setRating(int value)
Sets the rating value.- Parameters:
value- The value to set. Must be one of the constants defined by this class.
-
-