Class AllData

java.lang.Object
  extended by AllData

public class AllData
extends java.lang.Object

Class solely used to represent the entire data that has been annotated on a sequence of frames in a video (jpg) sequence.


Field Summary
 FrameData[] frameData
          An array of 3000 FrameData objects, based upon the assumption that there will be no more than 3000 frames in a given sequence of jpg files
static int FRAMES
          Variable used to determine the default number of frames Must be altered if the video sequence is longer than 3000 frames
 
Constructor Summary
AllData()
          Constructor, makes a new AllData object by creating a new FrameData[FRAMES] array
 
Method Summary
 java.awt.Point[] getAxisPoints(int angle, int x, int y, int width, int height)
          Similar to setAxisPoints in DrawCanvas, takes an angle and the coordinates of the top left corner of the rectangle along with the rectangle's height and width to calculate what the line should be for the relavent box object
 void printFrame(int frame)
           
 void printFrames()
           
 java.lang.String readFrom(java.lang.String seqName, java.lang.String fileName)
          Method used to read data from disk stored in a .xml file, returns the string consisting of all the data in text file fileName
 void setProperty(boolean ind, java.lang.String property, java.lang.String value, int id, int from, int to)
           
 java.lang.String updateData(org.w3c.dom.Document doc)
          Method used by readFrom to read in the xml file and update all of the necessary datastructures, adding the new structure that includes the body tag
 void writeTo(java.lang.String seqName, int id, java.lang.String fileName)
          Method used when writing given data to a file so it may be restored and annotation continued
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

frameData

public FrameData[] frameData
An array of 3000 FrameData objects, based upon the assumption that there will be no more than 3000 frames in a given sequence of jpg files


FRAMES

public static final int FRAMES
Variable used to determine the default number of frames Must be altered if the video sequence is longer than 3000 frames

See Also:
Constant Field Values
Constructor Detail

AllData

public AllData()
Constructor, makes a new AllData object by creating a new FrameData[FRAMES] array

Method Detail

writeTo

public void writeTo(java.lang.String seqName,
                    int id,
                    java.lang.String fileName)
Method used when writing given data to a file so it may be restored and annotation continued


readFrom

public java.lang.String readFrom(java.lang.String seqName,
                                 java.lang.String fileName)
Method used to read data from disk stored in a .xml file, returns the string consisting of all the data in text file fileName


updateData

public java.lang.String updateData(org.w3c.dom.Document doc)
Method used by readFrom to read in the xml file and update all of the necessary datastructures, adding the new structure that includes the body tag


getAxisPoints

public java.awt.Point[] getAxisPoints(int angle,
                                      int x,
                                      int y,
                                      int width,
                                      int height)
Similar to setAxisPoints in DrawCanvas, takes an angle and the coordinates of the top left corner of the rectangle along with the rectangle's height and width to calculate what the line should be for the relavent box object


printFrame

public void printFrame(int frame)

printFrames

public void printFrames()

setProperty

public void setProperty(boolean ind,
                        java.lang.String property,
                        java.lang.String value,
                        int id,
                        int from,
                        int to)