|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectspirals.data.TabletData
public class TabletData
Class stores list of tablet points creating drawing.
Data are stored in zip archive with one file in it. On name of inner file is taken no respect.
Copyright: Copyright (c) 2005 Jan Dolezel
Company: ÈVUT FEL, Prague
Field Summary | |
---|---|
private TabletInfo |
ti
tablet measures with which were data captured |
private java.util.List<TabletPoint> |
vektor
list of TabletPoints |
Constructor Summary | |
---|---|
TabletData(java.io.File file,
TabletInfo tabletInfo)
loads list from file Method reads file which is supposed to be zip archive. |
|
TabletData(TabletInfo tabletInfo)
creates new empty list with specified tablet |
Method Summary | |
---|---|
void |
add(TabletPoint tabletPoint)
appends TabletPoint to list |
TabletPoint |
get(int index)
retrieves TabletPoint at specified position |
TabletInfo |
getTabletInfo()
returns information about tablet with which were data captured |
boolean |
save(java.io.File file)
saves list to file Method save sequence of tablet points to file. |
int |
size()
returns length of list of points |
void |
trim()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<TabletPoint> vektor
private TabletInfo ti
Constructor Detail |
---|
public TabletData(TabletInfo tabletInfo)
tabletInfo
- tablet measurespublic TabletData(java.io.File file, TabletInfo tabletInfo)
Method reads file which is supposed to be zip archive. Archive contains one file, no matter of its name. Inner file consists of blocks of 20 bytes representing one tablet point.
file
- file to load fromtabletInfo
- tablet measuresMethod Detail |
---|
public void add(TabletPoint tabletPoint)
public TabletPoint get(int index)
public int size()
public boolean save(java.io.File file)
Method save sequence of tablet points to file. File is zip archive and contains one file with main data. Data are blocks of 20 bytes each block represent one tablet point.
public void trim()
public TabletInfo getTabletInfo()
|
Parkinson Disease Database | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |