org.gcube.portlets.user.homelibrary.home.workspace.basket.items
Interface Image

All Known Subinterfaces:
ExternalImage, ImageDocument

public interface Image

Author:
Federico De Faveri defaveri@isti.cnr.it

Method Summary
 int getHeight()
          The image height.
 long getLength()
          The image length.
 java.lang.String getMimeType()
          The image mime type.
 java.io.InputStream getThumbnail()
          The image thumbnail.
 int getThumbnailHeight()
          The image thumbnail height.
 long getThumbnailLength()
          The image thumbnail length.
 int getThumbnailWidth()
          The image thumbanil width.
 int getWidth()
          The image width.
 

Method Detail

getMimeType

java.lang.String getMimeType()
The image mime type.

Returns:
the mime type.

getWidth

int getWidth()
The image width.

Returns:
the width.

getHeight

int getHeight()
The image height.

Returns:
the height.

getLength

long getLength()
The image length.

Returns:
the length.

getThumbnail

java.io.InputStream getThumbnail()
                                 throws InternalErrorException
The image thumbnail.

Returns:
the thumbnail.
Throws:
InternalErrorException - if an internal error occurs.

getThumbnailWidth

int getThumbnailWidth()
The image thumbanil width.

Returns:
the thumbnail width.

getThumbnailHeight

int getThumbnailHeight()
The image thumbnail height.

Returns:
the thumbnail height.

getThumbnailLength

long getThumbnailLength()
The image thumbnail length.

Returns:
the thumbnail length.