org.weblab_project.core.model.multimedia
Class SpatialSegment

java.lang.Object
  extended by org.weblab_project.core.model.Resource
      extended by org.weblab_project.core.model.Segment
          extended by org.weblab_project.core.model.multimedia.SpatialSegment
All Implemented Interfaces:
java.io.Serializable

public class SpatialSegment
extends Segment
implements java.io.Serializable

A spatial segment is aiming to localise any meaningful content in a spatial document. For example, one can think to a picture showing some people. Specific segment can be localised with coordinate descriptors defining the silhouettes of each person in the picture. Then specific annotation can be applied to each segment (i.e. to declare that those are human beings). It is the kind of segment that may be used for image and video unit. When there are only two coordinates given associated to the spatialSegment, it means that the shape is a disk. The first coordinate is the centre and the second one in one point of the circle. Otherwise, coordinates are describing a closed shape since the last coordinate of the list will be linked to the first one. Data Exchange Model for WebLab platform provided by EADS Multimedia package - Version 1.1 - 2009/05

Java class for spatialSegment complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="spatialSegment">
   <complexContent>
     <extension base="{http://weblab-project.org/core/model/}segment">
       <sequence>
         <element name="coordinate" type="{http://weblab-project.org/core/model/multimedia}coordinate" maxOccurs="unbounded" minOccurs="2"/>
       </sequence>
     </extension>
   </complexContent>
 </complexType>
 

See Also:
Serialized Form

Field Summary
protected  java.util.List<Coordinate> coordinate
           
 
Fields inherited from class org.weblab_project.core.model.Resource
annotation, descriptor, uri
 
Constructor Summary
SpatialSegment()
           
 
Method Summary
 java.util.List<Coordinate> getCoordinate()
          Gets the value of the coordinate property.
 
Methods inherited from class org.weblab_project.core.model.Resource
getAnnotation, getDescriptor, getUri, setUri
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

coordinate

protected java.util.List<Coordinate> coordinate
Constructor Detail

SpatialSegment

public SpatialSegment()
Method Detail

getCoordinate

public java.util.List<Coordinate> getCoordinate()
Gets the value of the coordinate property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the coordinate property.

For example, to add a new item, do as follows:

    getCoordinate().add(newItem);
 

Objects of the following type(s) are allowed in the list Coordinate



Copyright © 2004-2010. All Rights Reserved.