...
In this document, we'll describe some of problems users confront when interacting with data tracks and offer some ideas for how these interactions could improve.
Scrolling
Most folks are pretty familiar with the idea of a document viewed through a window on a computer.
...
Scroll bars are used to position the document, or the window if you prefer to think of it that way.
Zooming
The notion of zooming also has a pretty clear physical analog. We can introduce another "scroll" bar to zoom in and out. From bird's eye view to actual size and beyond to magnification.
...
Zooming can also be done in two dimensions independently. Designing controls for this can be tricky. When zooming in one dimension instead of a focal point there is a focal line. That line would be vertical for horizontal scrolling and horizontal for vertical scrolling. In either case the focal line remains fixed and lines parallel to it move toward or away from the focal line.
Scrolling, Zooming, and Stretching With Genoviz
The Genoviz SDK was developed to display genomic data. It uses the notion of scene and view as analogs to document and window respectively. Within the scene (document) glyphs representing data are arranged in a hierarchy.
...
Panel |
---|
NeoMap. Conceptual view of Genoviz scrolling and zooming. |
Adding Tiers
The notion of tiers was introduced to display tracks of data all aligned to the same horizontal coordinate space. Manipulating these tiers presents some interesting problems. This discussion is limited to vertical manipulations.
Panel |
---|
Tiers. An example of a tiered map. |
Current (targeted) Behavior
There seem to be some bugs at the moment, but this is how the vertical manipulations should be working now. The packing of the tiers seems to get messed up and the border manipulation seems to get in a state where the border can no longer be moved.
The Rubber Canvas
IGB implements a one-dimensional variant of animated, semantic zooming, in which objects and the data field appear to stretch or contract about a central line during zooming and objects show more detail as users zoom in for a closer look.
...
Note: Adding a cross-hair to the Zoom Stripe may help users master this interaction more quickly. See figure below.
Vertical zooming
The vertical coordinate system in IGB does not have the same meaning as the horizontal coordinates system, which is closely wedded to the sequence data itself. This means that we have considerable freedom to augment vertical layout to convey more information and customize vertical zooming in ways that will help users explore data more effectively. Vertical placement is by category rather than by some sort of distance from an axis. The whole thing can be zoomed vertically as can any other Genoviz component. This will resize all the tiers except those marked as a fixed size.
Multi-track stretch
Currently, operating the vertical zoomer stretches each track by equal amounts during zoom. As a result, all Glyphs in the display are close the same height regardless of the level of zoom. This is good behavior in that it makes it easy for the user to control the display. Once a user understands how zoom-focusing works, he can click a Glyph and then drag the vertical zoomer up or down to cause the data scene to expand or contract around that central location.
Panel |
---|
Tiers Zoomed In Vertically. Here we have zoomed in a bit. |
Collapsing
A tier can be made to disappear by clicking the little grey - box on it's left. When it is gone the box will change to a + to let the user make it reappear. This can also be done by invoking the widget's pop up menu with a right mouse click. The little boxes may well be going away as they are no longer needed and cause a bit of difficulty with the zoom focus and glyph selection. A click on the button also gets passed through to the map below.
Border Adjustment
Adjust a border between two tiers. Dragging a border up should shrink the tier above and expand the tier below. Dragging it down should expand the tier above and shrink the one below. All other tiers should remain unaffected. No scrolling is instigated. The axis (or Coordinates) tier cannot be resized. If a border of the "Coordinates" tier is dragged then the tiers above the coordinates or axis tier and below it are resized.
Panel |
---|
Tier Border Change. The border between the top two tiers has been adjusted. |
Examples From Spreadsheet Column Resizing
Spreadsheets resize columns using mouse drags between columns. Could this behavior be instructive for our vertical resizing of tiers?
...
Michael notes that in some spreadsheets like Excel (OO does this too) double clicking on a border resizes the column to the left to automatically fit its content.
Moving a Tier (Shuffling)
A user can move a tier over others by grabbing it in the middle (not the border) with the mouse and dragging it vertically. When dropped the tier will take a new position in the stack of tiers and other tiers will be pushed down (or up) to accommodate the dropped tier's new position. All tiers retain their pre drag height. Scrolling is not instigated. Maybe it should be.
...
Panel |
---|
Moving a Tier. The central tier has been moved up and swapped with the one that was above it. |
Automatic Resizing
When the window height changes the tiers resize to fit.
Future Possibilities
There are some features of general GUI widgets that users like and might help if added to tiers. One loose analog is the columns of a spreadsheet. Spreadsheet columns can be moved and resized in various ways. However, tiers are not entirely generalizable as Swing components. We might do well to introduce some Swing concepts to tiers though. There are also other possibilities that are specific to genomics that go beyond (or restrict) Swing components.
...
- All manual resizing and moving of tiers should be accomplished by manipulating the tier label.
- No tier scrolling (yet)
- Selection partitions tier resizing. Resizing affects tiers within the selection and not those outside it. Resizing tiers outside the selection affects only those tiers on that side of the selection. It does not affect selected tiers. Nor does it affect tiers on the other side of the selection.
- Dragging interior borders (either within a selection or when there is no selection) accordions tiers above and below (again with respect to selection as above).
- Dragging the top or bottom border of a selection squeezes or expands the selection and the tiers on the outside the selection on that side. Tiers on the other side of the selection remain fixed.
- Zoom control expands only selected tiers (or all tiers if none have been selected) and pushes (not squeezes) outside tiers away.
- Dragging a border between tiers expands one tier and squeezes the other. When the squeezed tier reached its minimum height, the next tier is squeezed until it reaches its minimum height. Such squeezing cascades until there are no more tiers to squeeze. Then dragging is inhibited.
- Some spreadsheets have a nice feature of automatically resizing a column to fit its contents when the column's right border is double clicked. When the tier label is double clicked the tier should expand (or contract) to its preferred size. Other tiers should be pushed or pulled to accomodate this.
Stability of the Axis
In the shuffling example above the axis was moved to a new position. However, the position of the axis tier should probably change. Nor should the axis tier be resized. This tier has special meaning in that tracks displayed below it are generally on the reverse strand. So changing the axis position in the stack of tiers would have undesired semantic consequences. Resizing might be allowed within bounds, but those would have to be carefully chosen.
Tier Height Constraints
Is there a way to specify a minimum or maximum height for a tier? This would be useful for the axis tier and maybe for others.
Emulating the Swing API
Even though these are not Swing components it might be instructive to look at how Swing addresses some of these issues. In particular a layout manager and constraints might be employed.
Single-track Stretch
Sometimes it would be useful to be able to stretch-zoom tracks independently of each other, i.e., increase the relative height of one track while compressing the remaining tracks by equal amounts.
...
This horizontal portion of the "crosshair" might extend to the edges like the vertical hairline does now. It should also be translucent like the vertical hairline. Both of these things might help avoid confusing the horizontal hairline with glyphs representing data. Also it should probably only appear in the tier that has the focus.
Re-packing to fit available vertical space, but no more
more to come later
Ordered and sorted stacking
more to come later