|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object model.ImportedTableFile
public class ImportedTableFile
Title: Bioinformatics Project
Description: Genomes Comparacent
Copyright: Copyright (c) 2005-2006
ImportedTableFile is the class that import a file into a vector of lines.
Field Summary | |
---|---|
private java.io.BufferedReader |
BufReader
file descriptor. |
private boolean |
flag
A flag that indicates that the file can be opened successfuly. |
private long |
LineCount
Line number in the file. |
private java.util.Vector |
LineVector
Vector containing the lines as imported from the file. |
private boolean |
VecIsImported
Indicates the file lines has been imported successfuly. |
private long |
xScale
Default settings, to be deleted in the future. |
private long |
yScale
Default settings, to be deleted in the future. |
Constructor Summary | |
---|---|
ImportedTableFile(java.lang.String file)
Opens a file |
Method Summary | |
---|---|
Line |
getLineAt(int indx)
Returns a vector item(coordinates-line) |
java.util.Vector |
getLineVector()
Returns the ImportedTable data base |
private boolean |
IsFileImported()
Returns a flag that indicates whether the file has been imported into lines-vector |
private void |
setLineInVector(long x1,
long y1,
long x2,
long y2,
char sign)
The genomes length(xScale/yScale) is set to be the range of canvas. |
void |
setLineVector(boolean HEADLINE)
Sets the table lines into coordinates-Lines and then insert it into a the ImportedFileTable vector |
void |
setRegularTableFileConfiguration(long length,
long length2,
boolean HEADLINE)
Sets the ImportedFileTable Default configurations. |
private int |
skipSpaces(java.lang.String str,
int i)
Return the updated index which is used to read a string after skipping spaces. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.Vector LineVector
private java.io.BufferedReader BufReader
private boolean flag
private long LineCount
private boolean VecIsImported
private long xScale
private long yScale
Constructor Detail |
---|
public ImportedTableFile(java.lang.String file)
file
- String : given file path.Method Detail |
---|
private boolean IsFileImported()
public void setLineVector(boolean HEADLINE) throws java.io.IOException
java.io.IOException
private int skipSpaces(java.lang.String str, int i)
str
- String given string.i
- int the index to begin with.
public Line getLineAt(int indx)
indx
- int the line index.
public void setRegularTableFileConfiguration(long length, long length2, boolean HEADLINE)
length2
- length
- HEADLINE
- public java.util.Vector getLineVector()
private void setLineInVector(long x1, long y1, long x2, long y2, char sign)
x1
- long: the sigment start point coordinates.y1
- long: the sigment start point coordinates.x2
- long: the sigment end point coordinates.y2
- long: the sigment end point coordinates.sign
- char: the sigment sign.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |