-
Notifications
You must be signed in to change notification settings - Fork 387
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Cleanup the IGV events * Cleanup some of the event code by taking advantage of newer java 17 features - make most event types records and delete some unused events / fields - fix some intellij complaints in event usage / IGVEventBus * fix a double repaint bug in AlignmentTrack due to a missing break * Cleanup ViewChange and delete ZoomChange * Make IGV events all implement sealed interface IGVEvent This isn't really a functional change but makes it a bit easier to find/understand what event types are available.
- Loading branch information
1 parent
5deb9e9
commit aac2b39
Showing
42 changed files
with
133 additions
and
323 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package org.broad.igv.event; | ||
|
||
import org.broad.igv.oauth.OAuthProvider; | ||
import org.broad.igv.prefs.PreferencesChangeEvent; | ||
import org.broad.igv.sam.InsertionSelectionEvent; | ||
import org.broad.igv.ui.panel.FrameManager; | ||
|
||
public sealed interface IGVEvent | ||
permits | ||
AlignmentTrackEvent, | ||
DataLoadedEvent, | ||
GenomeChangeEvent, | ||
GenomeResetEvent, | ||
RefreshEvent, | ||
StopEvent, | ||
TrackGroupEvent, | ||
ViewChange, | ||
OAuthProvider.AuthStateEvent, | ||
PreferencesChangeEvent, | ||
InsertionSelectionEvent, | ||
FrameManager.ChangeEvent { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,6 @@ | |
*/ | ||
public interface IGVEventObserver { | ||
|
||
void receiveEvent(Object event); | ||
void receiveEvent(IGVEvent event); | ||
|
||
} |
33 changes: 0 additions & 33 deletions
33
src/main/java/org/broad/igv/event/ReferenceFrameEvent.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.