|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--corpus.analyser.Grid
This object creates a 2D array using vectors. When used in conjunction with spreadsheets x wil be the column and y the row.
Constructor Summary | |
Grid()
|
Method Summary | |
void |
add(int x,
int y,
java.lang.Object value)
Sets the value at x,y to the passed in value |
void |
clear(int x,
int y)
Sets the cell at x, y to null |
void |
displayInteger()
|
void |
displayString()
|
void |
displayStructure()
|
void |
dumpValues(java.util.Vector vector,
int x_offset,
int y_offset)
|
static Grid |
from2DVector(java.util.Vector vector,
int x_offset,
int y_offset)
Takes a Vector of vectors and converts it into a Grid. |
java.lang.Object |
get(int x,
int y)
Get the value stored at x,y |
int |
getMaxHeight()
|
int |
getMaxWidth()
|
int[] |
getMinMaxHeight(int x)
Find the maximum occupied row for the given x(column) |
int[] |
getMinMaxWidth(int y)
Find the maximum occupied row for the given y(row) |
static Grid |
load(java.lang.String path)
|
static void |
main(java.lang.String[] args)
|
void |
save(java.lang.String path)
|
void |
saveCSVInteger(java.lang.String path)
|
void |
saveVisad(java.lang.String path)
|
java.awt.Point |
size()
|
java.util.Vector |
to2DVector()
Converts the current grid file into a vector of vectors. |
void |
toDoodler(java.lang.String title)
|
double[][] |
toDoubleArray()
Expects a grid of Doubles. |
java.lang.Object[][] |
toObjectArray()
Expects a grid of Integers. |
java.lang.String |
toString()
|
java.lang.String |
toString(Grid g2)
Merge two grids in printing. |
java.lang.String |
toStringLogical()
|
java.lang.String |
toStringQuick()
|
void |
toVectorDoodler(java.lang.String title)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Grid()
Method Detail |
public void add(int x, int y, java.lang.Object value)
public java.lang.Object get(int x, int y)
public void clear(int x, int y)
public java.awt.Point size()
public int getMaxWidth()
public int getMaxHeight()
public void displayInteger()
public void displayString()
public static Grid from2DVector(java.util.Vector vector, int x_offset, int y_offset)
public java.util.Vector to2DVector()
public double[][] toDoubleArray()
public java.lang.Object[][] toObjectArray()
public void displayStructure()
public void saveCSVInteger(java.lang.String path)
public void saveVisad(java.lang.String path)
public void save(java.lang.String path)
public static Grid load(java.lang.String path)
public void toDoodler(java.lang.String title)
public void toVectorDoodler(java.lang.String title)
public void dumpValues(java.util.Vector vector, int x_offset, int y_offset)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringQuick()
public java.lang.String toStringLogical()
public java.lang.String toString(Grid g2)
public int[] getMinMaxHeight(int x)
x
- the column to inspect.
public int[] getMinMaxWidth(int y)
y
- the row to inspect.
public static void main(java.lang.String[] args)
|
Spreadsheet Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |