Package omero.gateway.model
Class DoubleAnnotationData
- java.lang.Object
-
- omero.gateway.model.DataObject
-
- omero.gateway.model.AnnotationData
-
- omero.gateway.model.DoubleAnnotationData
-
public class DoubleAnnotationData extends AnnotationData
Wraps a double annotation.- Since:
- 3.0-Beta4
-
-
Field Summary
-
Fields inherited from class omero.gateway.model.AnnotationData
FILE_TRANSFER_NS
-
-
Constructor Summary
Constructors Constructor Description DoubleAnnotationData()
Creates a new instance.DoubleAnnotationData(double value)
Creates a new instance.DoubleAnnotationData(omero.model.DoubleAnnotation annotation)
Creates a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
getContent()
Returns the value.java.lang.String
getContentAsString()
Returns the value as a string.double
getDataValue()
Returns the value.void
setContent(java.lang.Object content)
Sets the text annotation.void
setDataValue(double value)
Sets the rating value.-
Methods inherited from class omero.gateway.model.AnnotationData
getDescription, getLastModified, getNameSpace, setDescription, setNameSpace
-
Methods inherited from class omero.gateway.model.DataObject
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
-
-
-
-
Constructor Detail
-
DoubleAnnotationData
public DoubleAnnotationData(double value)
Creates a new instance.- Parameters:
value
- The value to set.
-
DoubleAnnotationData
public DoubleAnnotationData()
Creates a new instance.
-
DoubleAnnotationData
public DoubleAnnotationData(omero.model.DoubleAnnotation annotation)
Creates a new instance.- Parameters:
annotation
- TheDoubleAnnotation
object corresponding to thisDataObject
. Mustn't benull
.
-
-
Method Detail
-
setDataValue
public void setDataValue(double value)
Sets the rating value.- Parameters:
value
- The value to set.
-
getDataValue
public double getDataValue()
Returns the value.- Returns:
- See above.
-
getContent
public java.lang.Object getContent()
Returns the value.- Specified by:
getContent
in classAnnotationData
- Returns:
- See above.
- See Also:
AnnotationData.getContent()
-
getContentAsString
public java.lang.String getContentAsString()
Returns the value as a string.- Specified by:
getContentAsString
in classAnnotationData
- Returns:
- See above
- See Also:
AnnotationData.getContentAsString()
-
setContent
public void setContent(java.lang.Object content)
Sets the text annotation.- Specified by:
setContent
in classAnnotationData
- Parameters:
content
- The value to set.- See Also:
AnnotationData.setContent(Object)
-
-