Allow for multiple rows of node states, reordering nodes #26
Labels
component:visualizer
Issues and PRs relating to the new visualization tool
enhancement
New feature or request
Right now, all nodes are laid out in a single row. On very wide screens, this is fine. On smaller screens, trying to view more than 4 nodes at once is difficult. Nodes usually don't need the entire vertical height of the screen. There is quite a lot of white space in the node state box, and scrolling through the message inbox/timer queue above a node is preferable to scrolling horizontally when space is tight.
It would be nice to be able to layout
SingleNodePanel
s in multiple rows. I attempted a quick and dirty version where there were either one or two rows, and when there were two rows, they were separated by aJSplitPane
. This ran into some bizarre issues. I think the "right" way is to use multipleJXMultiSplitPane
s, one in vertical mode to hold the rows, and others in horizontal mode to hold each row, and use this trick to display only one row.dslabs/framework/tst/dslabs/framework/testing/newviz/DebuggerWindow.java
Lines 357 to 379 in 54f9fc1
The other piece that would be nice is a way for users to reorder nodes. This could be as simple as replacing the "Show/hide nodes" panel in the sidebar with a reorderable list of checkboxes. This tutorial might be helpful: http://www.java2s.com/Tutorial/Java/0240__Swing/Usedraganddroptoreorderalist.htm The best version of that feature would be the ability to drag and drop
SingleNodePanel
s by dragging the node name, but that seems very difficult.The text was updated successfully, but these errors were encountered: