ome.services.blitz.gateway.services.impl
Class ThumbnailServiceImpl

java.lang.Object
  extended by ome.services.blitz.gateway.services.impl.ThumbnailServiceImpl
All Implemented Interfaces:
ThumbnailService

public class ThumbnailServiceImpl
extends Object
implements ThumbnailService

Since:
OME3.0
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
ThumbnailServiceImpl(omero.api.ThumbnailStorePrx thumbnailStore)
          Create the ThumbnailService passing the gateway.
 
Method Summary
 byte[] getThumbnail(long pixelsId, omero.RInt sizeX, omero.RInt sizeY)
          Get the thumbnail of the image.
 byte[] getThumbnailByLongestSide(long pixelsId, omero.RInt size)
          Get the thumbnail of the image, maintain aspect ratio.
 Map<Long,byte[]> getThumbnailByLongestSideSet(omero.RInt size, List<Long> pixelsIds)
          Get a set of thumbnails, maintaining aspect ratio.
 Map<Long,byte[]> getThumbnailSet(omero.RInt sizeX, omero.RInt sizeY, List<Long> pixelsIds)
          Get a set of thumbnails.
 void setPixelsId(long pixelsId)
          Lookup the pixels for the renderingEngine for pixelsId
 void setRenderingDefId(long pixelsId, long renderingDefId)
          Set the rendering def from the default to another.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThumbnailServiceImpl

public ThumbnailServiceImpl(omero.api.ThumbnailStorePrx thumbnailStore)
                     throws omero.ServerError
Create the ThumbnailService passing the gateway.

Parameters:
ThumbnailStorePrx - To generate new instances of the ThumbnailStore.
Throws:
omero.ServerError
Method Detail

setPixelsId

public void setPixelsId(long pixelsId)
                 throws omero.ServerError
Lookup the pixels for the renderingEngine for pixelsId

Parameters:
pixelsId - see above.
Throws:
omero.ServerError

getThumbnail

public byte[] getThumbnail(long pixelsId,
                           omero.RInt sizeX,
                           omero.RInt sizeY)
                    throws omero.ServerError
Description copied from interface: ThumbnailService
Get the thumbnail of the image.

Specified by:
getThumbnail in interface ThumbnailService
Parameters:
pixelsId - for pixelsId
sizeX - size of thumbnail.
sizeY - size of thumbnail.
Returns:
see above.
Throws:
omero.ServerError

getThumbnailByLongestSide

public byte[] getThumbnailByLongestSide(long pixelsId,
                                        omero.RInt size)
                                 throws omero.ServerError
Description copied from interface: ThumbnailService
Get the thumbnail of the image, maintain aspect ratio.

Specified by:
getThumbnailByLongestSide in interface ThumbnailService
Parameters:
pixelsId - for pixelsId
size - size of thumbnail.
Returns:
see above.
Throws:
omero.ServerError

getThumbnailByLongestSideSet

public Map<Long,byte[]> getThumbnailByLongestSideSet(omero.RInt size,
                                                     List<Long> pixelsIds)
                                              throws omero.ServerError
Description copied from interface: ThumbnailService
Get a set of thumbnails, maintaining aspect ratio.

Specified by:
getThumbnailByLongestSideSet in interface ThumbnailService
Parameters:
size - size of thumbnail.
pixelsIds - list of ids.
Returns:
see above.
Throws:
omero.ServerError

getThumbnailSet

public Map<Long,byte[]> getThumbnailSet(omero.RInt sizeX,
                                        omero.RInt sizeY,
                                        List<Long> pixelsIds)
                                 throws omero.ServerError
Description copied from interface: ThumbnailService
Get a set of thumbnails.

Specified by:
getThumbnailSet in interface ThumbnailService
Parameters:
sizeX - size of thumbnail.
sizeY - size of thumbnail.
pixelsIds - list of ids.
Returns:
see above.
Throws:
omero.ServerError

setRenderingDefId

public void setRenderingDefId(long pixelsId,
                              long renderingDefId)
                       throws omero.ServerError
Description copied from interface: ThumbnailService
Set the rendering def from the default to another.

Specified by:
setRenderingDefId in interface ThumbnailService
Parameters:
pixelsId - for pixelsId
renderingDefId - see above.
Throws:
omero.ServerError


OmeroJava Api

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

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