|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.caida.otter.Column
A column object. A container for rows, which are in turn containers for coordinates.
Field Summary | |
static int |
BOUNDING_BOX_DENSITY
|
static int |
BOUNDING_BOX_MARGIN
|
Constructor Summary | |
Column()
Create an empty column. |
|
Column(int x)
Create a column with an x value. |
|
Column(Label newLabel)
Create a new column and insert a label as the first member |
|
Column(Node newNode)
Create a new column and insert a node as the first member. |
|
Column(java.lang.String colName)
Create a column with a name. |
Method Summary | |
void |
addCoordinate(Coordinate newCoord)
Add a coordinate. |
void |
addLabel(Label newLabel)
Add a label to the column. |
void |
addNode(Node newNode)
Add a node to the column. |
void |
calculateRowColBoundingBoxes(int colNum)
Calculate the bounding boxes containing all the coordinates in the column and save the results in the boundingBoxes Vector. |
void |
calculateXYBoundingBoxes()
Calculate the bounding boxes containing all the coordinates in the column and save the results in the boundingBoxes Vector. |
int |
countOutboundLinks()
Count the number of outbound links from the column. |
void |
debug()
|
void |
debugColContents()
Purge the column contents to the screen |
boolean |
doesLineCrossBoundingBox(int x1,
int y1,
int x2,
int y2)
Test a line against the bounding boxes of the column. |
boolean |
doesLineCrossBoundingBox(Node n1,
Node n2)
Overloaded version of doesLineCrossBoundingBox to accept Nodes |
void |
finalizeColumn()
Make sure the column contents contain the right X val. |
Coordinate[] |
getCoords()
Return an array of the coords in the column |
java.util.Vector |
getCoordVect()
Return the coordinate vector. |
int |
getLabelCount()
Return the number of labels in the column. |
java.util.Vector |
getLabelVect()
Return the label vector. |
java.lang.String |
getName()
Get a column's name |
int |
getNodeCount()
Return the number of nodes in the column. |
Node[] |
getNodes()
Return the node array. |
java.util.Vector |
getNodeVect()
Return the node vector. |
int |
getXLoc()
Get the x coordinate of the column. |
void |
insertHiddenNodes(int colNum,
DisplayObjects data)
Insert hidden nodes within the column for links that are purely vertical. |
boolean |
isEmpty()
Check if the column contains any coordinates. |
void |
removeCoord(Coordinate coord)
Remove a coordinate from this column |
void |
setColIdx(int index)
Set a column's index number. |
void |
setColumnX(int new_x)
Set the X val of everything in column |
void |
setName(java.lang.String colName)
Set a column's name. |
void |
setXandYvalues(int rowStart,
int rowHeight)
Explicitly synchronize the x and y values of nodes w/ the row and column they belong to. |
void |
setXandYvalues(int rowStart,
int colPos,
int rowHeight)
Explicitly synchronize the x and y values of nodes w/ the row and column they belong to. |
int |
shiftColumnX(int offset)
Shift all the values in a column by the offset. |
void |
sortNodesByParentMean(int minNodeSpacing,
int maxChildSearchDepth)
Request all rows to sort their nodes by parent mean. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int BOUNDING_BOX_MARGIN
public static final int BOUNDING_BOX_DENSITY
Constructor Detail |
public Column()
public Column(java.lang.String colName)
colName
- The name of the new column.public Column(int x)
x
- The initial x value of the new column.public Column(Node newNode)
newNode
- The first node to put into the new column.public Column(Label newLabel)
newLabel
- The first label to put into the new column.Method Detail |
public Coordinate[] getCoords()
public java.util.Vector getCoordVect()
public java.util.Vector getNodeVect()
public Node[] getNodes()
public void removeCoord(Coordinate coord)
coord
- The coordinate to remove from the column.public java.util.Vector getLabelVect()
public void setColumnX(int new_x)
new_x
- The X value to set for this column.public void finalizeColumn()
public int shiftColumnX(int offset)
offset
- The offset to shift the X value of this column by.public void addCoordinate(Coordinate newCoord)
newCoord
- The coordinate to add to this columnpublic void addNode(Node newNode)
newNode
- The node to add to the column.public void addLabel(Label newLabel)
newLabel
- The label to add to the column.public int getXLoc()
public int getNodeCount()
public int getLabelCount()
public int countOutboundLinks()
public void calculateRowColBoundingBoxes(int colNum)
colNum
- The column number this column is in the ColumnSet.public void calculateXYBoundingBoxes()
public boolean doesLineCrossBoundingBox(Node n1, Node n2)
n1
- The node representing the "from" coordinate.n2
- The node representing the "to" coordinate.public boolean doesLineCrossBoundingBox(int x1, int y1, int x2, int y2)
public void setXandYvalues(int rowStart, int colPos, int rowHeight)
rowStart
- The offset for the first row in the column.colPos
- The x value of the column.rowHeight
- The spacing in between rows.public void setXandYvalues(int rowStart, int rowHeight)
rowStart
- The offset for the first row.rowHeight
- The spacing in between rows.public void setName(java.lang.String colName)
colName
- The column's new name.public java.lang.String getName()
public boolean isEmpty()
public void setColIdx(int index)
index
- The column's new index number.public void sortNodesByParentMean(int minNodeSpacing, int maxChildSearchDepth)
minNodeSpacing
- The minimun spacing between nodes, so the amount of
space individual nodes are seperated by when spreading a row.public void insertHiddenNodes(int colNum, DisplayObjects data)
colNum
- Our column numberpublic void debugColContents()
public void debug()
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |