Details
-
Type: New Feature
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 9.1.8 Major Release
-
Labels:
-
Story Points:5
-
Epic Link:
-
Sprint:Winter 6 Mar 8 - Mar 19, Spring 1 2021 Mar 22 - Apr 2, Spring 2 2021 Apr 5 - Apr 16
Description
When users click the hand button ("move tool"), the cursor changes appearance and users can now click-drag the display to pan left or right.
When in "move mode", users can't select items in the display.
Let's change this to allow click-to-select.
Note that we can't allow click-drag to select because click-drag is already being used for the panning (move) interaction.
Please note the selection rules within IGB. When nothing is selected, click the "i" in the top right of the window.
Attachments
Activity
Grab tool logic change objectives:
- on mouseUp, if the cursor has moved since mouseDown (drag event), if the underlying area is a glyph, deselect all previous selections and select the glyph; if the underlying area is not a glyph, maintain any selections.
- on mouseUp, if the cursor has not moved since mouseDown (click event), if the underlying area is a glyph, (if the glyph is selected, deselect it, otherwise, deselect all glyphs and select the glyph underlying the click)
Holding the alt key changes which of the tools (select vs hand), is active, by changing the classes (SeqMapViewRubberBand vs SmartDragScrollMonitor) that are used, so modifying the methods used by the SmartDragScrollMonitor class should be sufficient to create the desired changes.
Holding the shift key should allow for selection of multiple glyphs.
Relevant files:
Class responsible for UI element configuration
- $repo/core/igb/src/main/java/com/affymetrix/igb/view/SeqMapView.java
Class responsible for listening to click events
- $repo/core/igb/src/main/java/com/affymetrix/igb/view/SeqMapViewMouseListener.java
Class responsible for forwarding drag event to genoviz SDK
- $repo/core/igb/src/main/java/com/affymetrix/igb/view/SmartDragScrollMonitor.java
Tested on Windows 10.
Drag tool can be used to select glyphs.
Holding the alt key changes which tool is active.
Holding the shift key allows for the selection of multiple glyphs.
Looks good, moving to Done.