|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectAllData
public class AllData
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 |
---|
public FrameData[] frameData
public static final int FRAMES
Constructor Detail |
---|
public AllData()
Method Detail |
---|
public void writeTo(java.lang.String seqName, int id, java.lang.String fileName)
public java.lang.String readFrom(java.lang.String seqName, java.lang.String fileName)
public java.lang.String updateData(org.w3c.dom.Document doc)
public java.awt.Point[] getAxisPoints(int angle, int x, int y, int width, int height)
public void printFrame(int frame)
public void printFrames()
public void setProperty(boolean ind, java.lang.String property, java.lang.String value, int id, int from, int to)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |