org.mindswap.multimedia
Interface Image

All Superinterfaces:
DigitalMedia
All Known Subinterfaces:
VideoFrame
All Known Implementing Classes:
ImageImpl, VideoFrameImpl

public interface Image
extends DigitalMedia

Title: Image

Description: An implementation of the DigitalMedia class specific to the Mindswap multimedia ontology concept Image

Copyright: Copyright (c) 2005

Company: Mindswap (http://www.mindswap.org/)


Method Summary
 Image addRegion(Region theRegion)
          Add the statement that this region is a sub-region of this image
 java.lang.String getDCDescription()
          Returns the dc:description property for this image.
 java.net.URL getImageURL()
          Returns the URL of the image.
 StmtIterator listDepicts()
          List all the depictions for this Image
 StmtIterator listRegions()
          List all the sub-regions of this Image
 Image removeRegion(Region theRegion)
          Remove the statement that this region is a sub-region of this image
 
Methods inherited from interface org.mindswap.multimedia.DigitalMedia
addDepicts, removeDepicts
 

Method Detail

getImageURL

public java.net.URL getImageURL()
Returns the URL of the image. This is the URI of the Image resource itself, which should be the same as the image it represents.

Returns:
URL the image url

listRegions

public StmtIterator listRegions()
List all the sub-regions of this Image

Returns:
StmtIterator an iterator over the hasRegion statements

listDepicts

public StmtIterator listDepicts()
List all the depictions for this Image

Specified by:
listDepicts in interface DigitalMedia
Returns:
StmtIterator an iterator over the depicts statements

getDCDescription

public java.lang.String getDCDescription()
Returns the dc:description property for this image.

Returns:
String the dc:description, or null if none exists

addRegion

public Image addRegion(Region theRegion)
Add the statement that this region is a sub-region of this image

Parameters:
theRegion - the new sub region
Returns:
Image a reference to this image

removeRegion

public Image removeRegion(Region theRegion)
Remove the statement that this region is a sub-region of this image

Parameters:
theRegion - the sub region to remove
Returns:
Image a reference to this image