|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Object | +--org.caida.otter.ColumnSet
Encapsulates a DisplayObjects object, it keeps track of elements in terms of columns as well. Columns may be treated as a single unit when managing the location of nodes on the display.
| Constructor Summary | |
ColumnSet(int columnWidth,
int rowHeight)
Create an empty ColumnSet. |
|
ColumnSet(int columnWidth,
int rowHeight,
DisplayObjects displayData)
Initialize a new ColumnSet object with a pre-made DisplayObjects object. |
|
| Method Summary | |
void |
addDisplayObjects(DisplayObjects displayData)
Add data to the column object and its encapsulted DisplayObjects object by specifying a DisplayObjects object. |
void |
addLabel(Label label)
Add a label to the encapsulated DisplayObjects object, and include the label in it's appropriate column. |
void |
addLine(Line line)
Add a line to the encapsulated DisplayObjects object, but no column specific stuff is done. |
void |
addNode(Node node)
Add a node to the encapsulated DisplayObjects object, and include the node in it's appropriate column and row. |
void |
debug()
|
void |
debugColSize()
|
void |
disperseNotFoundColumn(java.util.Vector disperseColList)
Disperse an entire column into the rest of the graph. |
int |
findDistanceBetweenColumns(Column col1,
Column col2)
helper method to find distance between columns. |
DisplayObjects |
getDisplayObjects()
Return the encapsulated DisplayObjects object. |
void |
insertHiddenNodes()
Insert hidden nodes into all columns that have overlapping vertical links on nodes. |
void |
orderColumnsByBoundingBoxes()
Order columns trying to minimize the number of overlapping links. |
void |
setXandYvalues()
Set our respective coordinates X and Y values with default values for the row and column, starting a 0. |
void |
setXandYvalues(int columnStart)
Set our respective coordinates X and Y values with default values for the row and column, starting at the specified offset. |
void |
setXandYvalues(int columnStart,
int columnSpacing,
int rowSpacing)
Set our respective coordinates X and Y values based on their row and column. |
void |
spaceColumnsByNodeCount(int minNodeSpacing)
Space columns by node count with default column width |
void |
spaceColumnsByNodeCount(int minNodeSpacing,
int minColSpacing)
Update X coords of nodes such that each column receives space on account of how many nodes are contained on one level. |
void |
spaceColumnsEvenly()
Space each column in the DisplayObjects evenly using the default column spacing. |
void |
spaceColumnsEvenly(int colSpacing)
Space each column in the DisplayObjects evenly. |
void |
spaceColumnsEvenly(int min_x,
int max_x)
Space each column in the DisplayObjects evenly. |
void |
spaceNodesByParentMean(int minNodeSpacing,
int maxChildSearchDepth)
Space out overlapping nodes by looking at their parent and sorting nodes by the mean of the parent. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ColumnSet(int columnWidth,
int rowHeight)
public ColumnSet(int columnWidth,
int rowHeight,
DisplayObjects displayData)
columnWidth - The space between columns.rowHeight - The space between rows.displayData - The DisplayObjects object to sort into rows and
columns.| Method Detail |
public void spaceNodesByParentMean(int minNodeSpacing,
int maxChildSearchDepth)
minNodeSpacing - The minimum space between nodes when spreading a
row.public void orderColumnsByBoundingBoxes()
public int findDistanceBetweenColumns(Column col1,
Column col2)
col1 - The first column to compare.col2 - The second column used in the comparison.
public void spaceColumnsEvenly(int min_x,
int max_x)
min_x - The starting X value used.max_x - The ending X value used.public void spaceColumnsEvenly(int colSpacing)
colSpacing - The space to put between neighboring columns.public void spaceColumnsEvenly()
public void spaceColumnsByNodeCount(int minNodeSpacing)
minNodeSpacing - The minimum space between nodes when they are
spread along a row. This is needed to estimate the width
of each column, and then its new width considering its size
in nodes.
public void spaceColumnsByNodeCount(int minNodeSpacing,
int minColSpacing)
minNodeSpacing - The minimum space between nodes when they are
spread along a row. This is needed to estimate the width of
each column, and then its new width considering its size in
nodes.minColSpacing - The minimum column Spacing regardless of node count.public void addNode(Node node)
node - The new node.public void disperseNotFoundColumn(java.util.Vector disperseColList)
public void addLine(Line line)
line - Line to add to DisplayObjects and the column / row objectpublic void addLabel(Label label)
label - The new labelpublic DisplayObjects getDisplayObjects()
public void setXandYvalues(int columnStart,
int columnSpacing,
int rowSpacing)
columnStart - The offset for the first column.coumnSpacing - The spacing between columns.rowSpacing - The spacing between rows.public void setXandYvalues(int columnStart)
columnStart - The offset of the first column.public void setXandYvalues()
public void addDisplayObjects(DisplayObjects displayData)
displayData - The DisplayObjects object to processpublic void insertHiddenNodes()
public void debug()
public void debugColSize()
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||