mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 08:26:15 +00:00
Merge pull request #6248 from rcordovano/6807-MediaViewImagePanel-thread-safety
6807 Tidy up MediaViewImagePanel
This commit is contained in:
commit
0c726c20b8
@ -118,28 +118,11 @@ class MediaViewImagePanel extends JPanel implements MediaFileViewer.MediaViewPan
|
||||
.map("."::concat) //NOI18N
|
||||
.collect(Collectors.toList());
|
||||
|
||||
private final boolean fxInited;
|
||||
|
||||
/*
|
||||
* JFX
|
||||
* JFX components
|
||||
*/
|
||||
private final ProgressBar progressBar = new ProgressBar();
|
||||
private final MaskerPane maskerPane = new MaskerPane();
|
||||
|
||||
/*
|
||||
* Swing
|
||||
*/
|
||||
private final JPopupMenu imageTaggingOptions = new JPopupMenu();
|
||||
private final JMenuItem createTagMenuItem;
|
||||
private final JMenuItem deleteTagMenuItem;
|
||||
private final JMenuItem hideTagsMenuItem;
|
||||
private final JMenuItem exportTagsMenuItem;
|
||||
private final JFileChooser exportChooser;
|
||||
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);
|
||||
|
||||
/*
|
||||
* JFX
|
||||
*/
|
||||
private Group masterGroup;
|
||||
private ImageTagsGroup tagsGroup;
|
||||
private ImageTagCreator imageTagCreator;
|
||||
@ -148,10 +131,21 @@ class MediaViewImagePanel extends JPanel implements MediaFileViewer.MediaViewPan
|
||||
private Task<Image> readImageTask;
|
||||
|
||||
/*
|
||||
* Swing
|
||||
* Swing components
|
||||
*/
|
||||
private final JPopupMenu imageTaggingOptions = new JPopupMenu();
|
||||
private final JMenuItem createTagMenuItem;
|
||||
private final JMenuItem deleteTagMenuItem;
|
||||
private final JMenuItem hideTagsMenuItem;
|
||||
private final JMenuItem exportTagsMenuItem;
|
||||
private final JFileChooser exportChooser;
|
||||
private final PropertyChangeSupport pcs = new PropertyChangeSupport(this);
|
||||
private JFXPanel fxPanel;
|
||||
|
||||
/*
|
||||
* State
|
||||
*/
|
||||
private final boolean fxInited;
|
||||
private double zoomRatio;
|
||||
private double rotation; // Can be 0, 90, 180, and 270.
|
||||
private boolean autoResize = true; // Auto resize when the user changes the size of the content viewer unless the user has used the zoom buttons.
|
||||
|
Loading…
x
Reference in New Issue
Block a user