| Modifier and Type | Method and Description | 
|---|---|
java.util.Map<FolderData,java.util.Collection<ROIData>> | 
addRoisToFolders(SecurityContext ctx,
                long imageID,
                java.util.Collection<ROIData> roiList,
                java.util.Collection<FolderData> folders)
Adds ROIs to Folders 
 | 
java.util.Map<FolderData,java.util.Collection<ROIData>> | 
addRoisToFolders(SecurityContext ctx,
                long imageID,
                java.util.Collection<ROIData> roiList,
                java.util.Collection<FolderData> folders,
                boolean removeFromOtherFolders)
Adds ROIs to Folders 
 | 
int | 
getROICount(SecurityContext ctx,
           long imageId)
Get the number of ROIs for an image ( 
-1
 in case of error) | 
java.util.Collection<FolderData> | 
getROIFolders(SecurityContext ctx,
             long imageId)
Get all ROI folders for a certain image 
 | 
ROIResult | 
loadROI(SecurityContext ctx,
       long roiId)
Loads the ROI 
 | 
java.util.List<ROIResult> | 
loadROIs(SecurityContext ctx,
        long imageID)
Loads the ROI related to the specified image. 
 | 
java.util.List<ROIResult> | 
loadROIs(SecurityContext ctx,
        long imageID,
        java.util.List<java.lang.Long> measurements)
Loads the ROI related to the specified image. 
 | 
java.util.List<ROIResult> | 
loadROIs(SecurityContext ctx,
        long imageID,
        java.util.List<java.lang.Long> measurements,
        long userID)
Loads the ROI related to the specified image. 
 | 
java.util.List<ROIResult> | 
loadROIsByPlane(SecurityContext ctx,
               long imageID,
               int z,
               int t)
Loads the ROI related to the specified image. 
 | 
java.util.Collection<ROIResult> | 
loadROIsForFolder(SecurityContext ctx,
                 long imageId,
                 long folderId)
Get all ROIs which are part of a certain folder 
 | 
void | 
removeRoisFromFolders(SecurityContext ctx,
                     long imageID,
                     java.util.Collection<ROIData> roiList,
                     java.util.Collection<FolderData> folders)
Remove the ROIs from the folders 
 | 
java.util.Collection<ROIData> | 
saveROIs(SecurityContext ctx,
        long imageID,
        java.util.Collection<ROIData> roiList)
Save the ROI for the image to the server. 
 | 
java.util.Collection<ROIData> | 
saveROIs(SecurityContext ctx,
        long imageID,
        long userID,
        java.util.Collection<ROIData> roiList)
Save the ROI for the image to the server. 
 | 
addPropertyChangeListener, clear, firePropertyChanged, firePropertyChanged, getFacility, logDebug, logError, logInfo, logWarn, removePropertyChangeListenerpublic int getROICount(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
-1
 in case of error)ctx - The SecurityContextimageId - The image IdDSOutOfServiceExceptionDSAccessExceptionpublic ROIResult loadROI(SecurityContext ctx, long roiId) throws DSOutOfServiceException, DSAccessException
ctx - The security context.roiId - The ROI's id.DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
             service.public java.util.List<ROIResult> loadROIsByPlane(SecurityContext ctx, long imageID, int z, int t) throws DSOutOfServiceException, DSAccessException
ctx - The security context.imageID - The image's ID.z - The selection z-section.t - The selection timepoint.DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
             service.public java.util.List<ROIResult> loadROIs(SecurityContext ctx, long imageID) throws DSOutOfServiceException, DSAccessException
ctx - The security context.imageID - The image's ID.DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
             service.public java.util.List<ROIResult> loadROIs(SecurityContext ctx, long imageID, java.util.List<java.lang.Long> measurements) throws DSOutOfServiceException, DSAccessException
ctx - The security context.imageID - The image's ID.measurements - The measurements IDs linked to the image if any.DSOutOfServiceException - If the connection is broken, or logged in.DSAccessException - If an error occurred while trying to retrieve data from OMEDS
             service.public java.util.List<ROIResult> loadROIs(SecurityContext ctx, long imageID, java.util.List<java.lang.Long> measurements, long userID) throws DSOutOfServiceException, DSAccessException
ctx - The security context.imageID - The image's ID.measurements - The measurements IDs linked to the image if any.userID - The user's ID.DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
             service.public java.util.Collection<ROIData> saveROIs(SecurityContext ctx, long imageID, java.util.Collection<ROIData> roiList) throws DSOutOfServiceException, DSAccessException
ctx - The security context.imageID - The image's ID.roiList - The list of ROI to save.DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
             service.public java.util.Map<FolderData,java.util.Collection<ROIData>> addRoisToFolders(SecurityContext ctx, long imageID, java.util.Collection<ROIData> roiList, java.util.Collection<FolderData> folders) throws DSOutOfServiceException, DSAccessException
ctx - The SecurityContextimageID - The image idroiList - The ROIs to add to the Foldersfolders - The Folders to add the ROIs toDSOutOfServiceExceptionDSAccessExceptionpublic java.util.Map<FolderData,java.util.Collection<ROIData>> addRoisToFolders(SecurityContext ctx, long imageID, java.util.Collection<ROIData> roiList, java.util.Collection<FolderData> folders, boolean removeFromOtherFolders) throws DSOutOfServiceException, DSAccessException
ctx - The SecurityContextimageID - The image idroiList - The ROIs to add to the Foldersfolders - The Folders to add the ROIs toremoveFromOtherFolders - Pass true if the ROIs should only be linked to
            the specified folders, others will be unlinked.DSOutOfServiceExceptionDSAccessExceptionpublic void removeRoisFromFolders(SecurityContext ctx, long imageID, java.util.Collection<ROIData> roiList, java.util.Collection<FolderData> folders) throws DSOutOfServiceException, DSAccessException
ctx - The SecurityContextimageID - The image idroiList - The ROIs to remove from the foldersfolders - The Folders to remove the ROIs fromDSOutOfServiceExceptionDSAccessExceptionpublic java.util.Collection<ROIData> saveROIs(SecurityContext ctx, long imageID, long userID, java.util.Collection<ROIData> roiList) throws DSOutOfServiceException, DSAccessException
ctx - The security context.imageID - The image's ID (can be -1 for ROIs not attached
            to an image)userID - The user's ID.roiList - The list of ROI to save.DSOutOfServiceException - If the connection is broken, or not logged inDSAccessException - If an error occurred while trying to retrieve data from OMERO
             service.public java.util.Collection<FolderData> getROIFolders(SecurityContext ctx, long imageId) throws DSOutOfServiceException, DSAccessException
ctx - The SecurityContextimageId - The image idDSOutOfServiceException - If the connection is broken, or logged in.DSAccessException - If an error occurred while trying to retrieve data from OMEDS
             service.public java.util.Collection<ROIResult> loadROIsForFolder(SecurityContext ctx, long imageId, long folderId) throws DSOutOfServiceException, DSAccessException
ctx - The SecurityContextimageId - The image idfolderId - The folder idDSOutOfServiceException - If the connection is broken, or logged in.DSAccessException - If an error occurred while trying to retrieve data from OMEDS
             service.