|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object viper.descriptors.Descriptor viper.descriptors.DescSingle
This class represents a Descriptor of a given visual element in a video file. There are three types: FILE, CONTENT, and OBJECT.
Field Summary |
Fields inherited from class viper.descriptors.Descriptor |
attributes, composable, croppingType, span |
Constructor Summary | |
DescSingle(java.lang.String category)
Constructs a new object with the given category. |
|
DescSingle(java.lang.String category,
java.lang.String name)
Constructs a new descriptor with the given category and type name. |
Method Summary | |
java.lang.Object |
clone()
Generates a new Descriptor Object sharing none of the references of the original but containing identical data. |
Descriptor |
compose(Descriptor D,
EvaluationParameters.ScopeRules scope)
Composes this descriptor with the given descriptor under the given set of scope and composition rules. |
Descriptor |
crop(FrameSpan span)
Like clone, but only clones a subset of this descriptor. |
FrameSpan |
getBrokenFrameSpan()
Breaks the combined frame span of the attributes. |
FrameSpan |
getFrameSpan()
Gets the descriptor's frame span. |
java.lang.Object |
getID()
Returns the ID number of the descriptor. |
org.w3c.dom.Element |
getXMLFormat(org.w3c.dom.Document root)
Gets an XML representation of the descriptor. |
void |
moveFrame(int offset)
Shifts the descriptor by the given offset. |
int |
numIDs()
Returns the number of Identification numbers in this descriptor. |
void |
setAttribute(java.lang.String name,
Attribute attribute)
Sets the named attribute to the given value |
void |
setFrameSpan(FrameSpan span)
changes the framespan. |
void |
setID(int id)
Sets the id number of the descriptor. |
Methods inherited from class viper.descriptors.Descriptor |
compareTo, composeThese, endFrame, equals, getAttribute, getAttribute, getAttributeIndex, getAttributeIndex, getAttributeNames, getAttributesOfType, getCategory, getFilterable, getFullName, getHighestFrame, getName, getType, hasAttrib, hasAttribute, hashCode, isCategory, isComposable, isRoc, named, parseDescriptorConfig, parseDescriptorConfig, printSelf, printSelf, rawFormat, rocAttributeName, sameCategoryAs, setCategory, setName, startFrame, startsWithCategory, toString |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DescSingle(java.lang.String category) throws BadDataException
category
- the category, e.g. "CONTENT"
BadDataException
public DescSingle(java.lang.String category, java.lang.String name) throws BadDataException
category
- the category, e.g. "CONTENT"name
- the name of the descriptor type, e.g. "Person"
BadDataException
Method Detail |
public java.lang.Object clone()
clone
in class Descriptor
public java.lang.Object getID()
getID
in class Descriptor
public void setID(int id)
id
- public int numIDs()
Descriptor
numIDs
in class Descriptor
public FrameSpan getBrokenFrameSpan()
public FrameSpan getFrameSpan()
getFrameSpan
in class Descriptor
public void moveFrame(int offset)
Descriptor
moveFrame
in class Descriptor
offset
- the number of frames to shift
the descriptor.public void setFrameSpan(FrameSpan span)
setFrameSpan
in class Descriptor
span
- the new spanpublic Descriptor compose(Descriptor D, EvaluationParameters.ScopeRules scope) throws BadDataException, UncomposableException
Descriptor
compose
in class Descriptor
D
- the descriptor to compose withscope
- rules for the composition
BadDataException
UncomposableException
DescAggregate
public org.w3c.dom.Element getXMLFormat(org.w3c.dom.Document root)
getXMLFormat
in class Descriptor
root
- used to create the returned elements
public void setAttribute(java.lang.String name, Attribute attribute) throws BadDataException
name
- the name of the attributeattribute
- the value of the attribute
BadDataException
- when trying to set the wrong type - ie dyanmic to static or
bbox to circle. It does not currently check to make sure that
there are the proper number of frames in a dynamic attribute,
however.public Descriptor crop(FrameSpan span)
Descriptor
crop
in class Descriptor
span
- the new span
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |