|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.caida.otter.Row
Constructor Summary | |
Row()
Create an empty row |
|
Row(Coordinate newCoord)
Create a row and initialize it with this coordinate |
|
Row(int y_val)
Create an empty row with this y val |
Method Summary | |
void |
addCoordinate(Coordinate newCoord)
Add a coordinate to the row |
boolean |
containsCoord(Coordinate coord)
Test a row if it contains the specified coordinate. |
boolean |
containsCoord(java.lang.String name)
Test a row if it contains the specified coordinate. |
void |
debug()
|
int |
getCoordCount()
Get a count of all the coordinate in the row. |
java.util.Vector |
getCoordVect()
Get a vector of all the coordinates contained by the row. |
int |
getLabelCount()
Get a count of the number of labels in the row. |
int |
getNodeCount()
Get a count of the number of nodes in the row. |
java.util.Vector |
getNodeVect()
Get a vector of the nodes in the row. |
int |
getYLoc()
Get a row's y location. |
boolean |
isEmpty()
Test if the row is empty |
boolean |
removeCoord(Coordinate coord)
Remove the specified coordinate |
boolean |
removeCoord(java.lang.String name)
Remove the specified coordinate |
void |
setColIdx(int index)
Set a all the nodes to the specified column index |
void |
setRow(int y_val)
Set the y value of a row. |
void |
setRowX(int x_val)
Necessary because rows are subserviant to Columns. |
void |
setXandYvalues(int xVal,
int yVal)
Explicitly sync all the x's and y's of the coordinates in the row |
void |
shiftRow(int y_shift)
Shift a row's y value by a constant. |
void |
shiftRowX(int x_shift)
Necessary because rows are subserviant to Columns. |
void |
sortNodesByParentMean(int minNodeSpacing,
int maxChildSearchDepth)
Sort a vector of coordinate by their parent (and child) mean. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public Row()
public Row(int y_val)
public Row(Coordinate newCoord)
newCoord
- The first coordinate to populate the row.Method Detail |
public void addCoordinate(Coordinate newCoord)
newCoord
- The coordinate to add to this row.public void setRow(int y_val)
y_val
- The Y value of this row, which will be stored as
a class variable.public void setRowX(int x_val)
x_val
- The x value to assign to all the coordinates in the row.public void shiftRow(int y_shift)
y_shift
- The amount to shift the y value of the row.public void shiftRowX(int x_shift)
x_shift
- The amount to shift all coordinates in the column.public int getYLoc()
public java.util.Vector getCoordVect()
public java.util.Vector getNodeVect()
public int getNodeCount()
public int getLabelCount()
public int getCoordCount()
public boolean containsCoord(Coordinate coord)
coord
- The coordinate to test if it is in the row.public boolean containsCoord(java.lang.String name)
name
- The name of a coordinate to test if its in the row.public boolean removeCoord(java.lang.String name)
name
- The name of the coordinate to remove.public boolean removeCoord(Coordinate coord)
coord
- The coordinate to remove.public void setXandYvalues(int xVal, int yVal)
xVal
- The x value to set all coordinates to.yVal
- The y value to set all coordinates to. This value is
also stored in the row's class variable, since it should know its
own y value.public boolean isEmpty()
public void setColIdx(int index)
index
- The new index of this column. It is just written
straight to the nodes so we can figure out who they belong to later.public void sortNodesByParentMean(int minNodeSpacing, int maxChildSearchDepth)
minNodeSpacing
- The spacing added between nodes when
they are spaced across the row.public void debug()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |