pojos
Class DoubleAnnotationData

java.lang.Object
  extended by pojos.DataObject
      extended by pojos.AnnotationData
          extended by pojos.DoubleAnnotationData

public class DoubleAnnotationData
extends AnnotationData

Wraps a double annotation.

Since:
3.0-Beta4
Version:
3.0 (Internal version: $Revision: $Date: $)
Author:
Jean-Marie Burel      j.burel@dundee.ac.uk, Donald MacDonald      donald@lifesci.dundee.ac.uk

Constructor Summary
DoubleAnnotationData()
          Creates a new instance.
DoubleAnnotationData(double value)
          Creates a new instance.
DoubleAnnotationData(omero.model.DoubleAnnotation annotation)
          Creates a new instance.
 
Method Summary
 Object getContent()
          Returns the value.
 String getContentAsString()
          Returns the value as a string.
 double getDataValue()
          Returns the value.
 void setContent(Object content)
          Sets the text annotation.
 void setDataValue(double value)
          Sets the rating value.
 
Methods inherited from class pojos.AnnotationData
getLastModified, getNameSpace, setNameSpace
 
Methods inherited from class pojos.DataObject
asAnnotation, asChannel, asDataset, asExperimenter, asGroup, asIAnnotated, asImage, asIObject, asPixels, asPlate, asPojo, asPojos, asPojos, asProject, asScreen, asWell, asWellSample, getCreated, getDetails, getId, getOwner, getPermissions, getUpdated, getVersion, isDirty, isLoaded, nullDetails, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, nullSafe, setDirty, setId, setValue, setVersion, timeOfEvent, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

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 - The DoubleAnnotation object corresponding to this DataObject. Mustn't be null.
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 Object getContent()
Returns the value.

Specified by:
getContent in class AnnotationData
Returns:
See above.
See Also:
AnnotationData.getContent()

getContentAsString

public String getContentAsString()
Returns the value as a string.

Specified by:
getContentAsString in class AnnotationData
Returns:
See above
See Also:
AnnotationData.getContentAsString()

setContent

public void setContent(Object content)
Sets the text annotation.

Specified by:
setContent in class AnnotationData
Parameters:
content - The value to set.
See Also:
AnnotationData.setContent(Object)


OmeroJava Api

Version: Beta4.2.1-r8614-Beta4.2-b41

Copyright © 2009 The University of Dundee. All Rights Reserved.