pojos
Class ROIData

java.lang.Object
  extended by pojos.DataObject
      extended by pojos.ROIData

public class ROIData
extends DataObject

Converts the ROI object.

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
ROIData()
          Create a new instance of an ROIData object.
ROIData(omero.model.Roi roi)
          Creates a new instance.
 
Method Summary
 void addShapeData(ShapeData shape)
          Add ShapeData object to ROIData.
 ROICoordinate firstPlane()
          Return the first plane that the ROI starts on.
 omero.model.Image getImage()
          Get the image for the ROI.
 Iterator<List<ShapeData>> getIterator()
          Returns the iterator of the collection of the map.
 Map<String,List<String>> getNamespaceKeywords()
          Get the keywords of the ROI.
 List<String> getNamespaceKeywords(String namespace)
          Get the keywords of the namespace on the ROI.
 List<String> getNamespaces()
          Get the namespace of the ROI.
 int getPlaneCount()
          Get the number of planes occupied by the ROI.
 int getShapeCount()
          Get the number of shapes in the ROI.
 List<ShapeData> getShapes(int z, int t)
          Returns the list of shapes on a given plane.
 Iterator<List<ShapeData>> getShapesInRange(ROICoordinate start, ROICoordinate end)
          Returns an iterator of the Shapes in the ROI in the range [start, end].
 boolean isClientSide()
          Is the object a clientside object
 ROICoordinate lastPlane()
          Returns the last plane that the ROI ends on.
 void removeNamespace(String namespace)
          Remove the namespace from the ROI
 void removeShapeData(ShapeData shape)
          Remove the ShapeData object from ROIData.
 void setClientSide(boolean clientSide)
          Is the object a clientside object
 void setImage(omero.model.Image image)
          Set the imageId for the ROI.
 void setNamespaceKeywords(String namespace, String[] keywords)
          Set the namespace keywords of the.
 void setNamespaceMap(Map<String,List<String>> map)
          Set the namespaces and keywords of the ROI from the map
 
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

ROIData

public ROIData(omero.model.Roi roi)
Creates a new instance.

Parameters:
roi - The ROI hosted by the component.

ROIData

public ROIData()
Create a new instance of an ROIData object.

Method Detail

setImage

public void setImage(omero.model.Image image)
Set the imageId for the ROI.

Parameters:
imageId - See above.

getImage

public omero.model.Image getImage()
Get the image for the ROI.

Returns:
See above.

addShapeData

public void addShapeData(ShapeData shape)
Add ShapeData object to ROIData.

Parameters:
shape - See above.

removeShapeData

public void removeShapeData(ShapeData shape)
Remove the ShapeData object from ROIData.

Parameters:
shape - See above.

getPlaneCount

public int getPlaneCount()
Get the number of planes occupied by the ROI.

Returns:
See above.

getShapeCount

public int getShapeCount()
Get the number of shapes in the ROI.

Returns:
See above.

getShapes

public List<ShapeData> getShapes(int z,
                                 int t)
Returns the list of shapes on a given plane.

Parameters:
z - The z-section.
t - The timepoint.
Returns:
See above.

getIterator

public Iterator<List<ShapeData>> getIterator()
Returns the iterator of the collection of the map.

Returns:
See above.

firstPlane

public ROICoordinate firstPlane()
Return the first plane that the ROI starts on.

Returns:
See above.

lastPlane

public ROICoordinate lastPlane()
Returns the last plane that the ROI ends on.

Returns:
See above.

getShapesInRange

public Iterator<List<ShapeData>> getShapesInRange(ROICoordinate start,
                                                  ROICoordinate end)
Returns an iterator of the Shapes in the ROI in the range [start, end].

Parameters:
start - The starting plane where the Shapes should reside.
end - The final plane where the Shapes should reside.
Returns:
See above.

isClientSide

public boolean isClientSide()
Is the object a clientside object

Returns:
See above.

setClientSide

public void setClientSide(boolean clientSide)
Is the object a clientside object

Parameters:
clientSide - See above.

setNamespaceKeywords

public void setNamespaceKeywords(String namespace,
                                 String[] keywords)
Set the namespace keywords of the.

Parameters:
namespace - See above.
keywords - See above.

removeNamespace

public void removeNamespace(String namespace)
Remove the namespace from the ROI

Parameters:
namespace - See above.

setNamespaceMap

public void setNamespaceMap(Map<String,List<String>> map)
Set the namespaces and keywords of the ROI from the map

Parameters:
map - See above.

getNamespaces

public List<String> getNamespaces()
Get the namespace of the ROI.

Returns:
See above.

getNamespaceKeywords

public List<String> getNamespaceKeywords(String namespace)
Get the keywords of the namespace on the ROI.

Parameters:
namespace - See above.
Returns:
See above.

getNamespaceKeywords

public Map<String,List<String>> getNamespaceKeywords()
Get the keywords of the ROI.

Returns:
See above.


OmeroJava Api

Version: Beta-4.2.0-r7571-b29

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