Commit 8fc8dee
committed
DisplayViewer: add view(UserInterface, Display)
This method allow DisplayViewer implementations to customize exactly how
they work for each supported UserInterface.
The default implementation tells the UserInterface to create its usual
flavor of DisplayWindow around the Display, invokes view(DisplayWindow,
Display), then DisplayWindow#showDisplay(Display), and finally
Display#update(), as AbstractUserInterface was previously doing.
DisplayViewer implementations needing more control (e.g., if a window
already exists, and we don't want the SwingUI to create another one) may
now override view(UserInterface, Display) to customize this process.
This will be useful in particular for SciView
(https://github.com/scenerygraphics/SciView).1 parent f0cc7f4 commit 8fc8dee
File tree
3 files changed
+23
-7
lines changed- src/main/java/org/scijava/ui
- viewer
3 files changed
+23
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
138 | 137 | | |
139 | 138 | | |
140 | 139 | | |
141 | | - | |
142 | | - | |
143 | | - | |
| 140 | + | |
144 | 141 | | |
145 | | - | |
146 | | - | |
147 | 142 | | |
148 | 143 | | |
149 | 144 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
70 | 91 | | |
71 | 92 | | |
72 | 93 | | |
| |||
0 commit comments