Autopsy  4.15.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
VideoFilterPanel.java
Go to the documentation of this file.
1 /*
2  * Autopsy
3  *
4  * Copyright 2020 Basis Technology Corp.
5  * Contact: carrier <at> sleuthkit <dot> org
6  *
7  * Licensed under the Apache License, Version 2.0 (the "License");
8  * you may not use this file except in compliance with the License.
9  * You may obtain a copy of the License at
10  *
11  * http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing, software
14  * distributed under the License is distributed on an "AS IS" BASIS,
15  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16  * See the License for the specific language governing permissions and
17  * limitations under the License.
18  */
19 package org.sleuthkit.autopsy.discovery;
20 
22 
26 final class VideoFilterPanel extends AbstractFiltersPanel {
27 
28  private static final long serialVersionUID = 1L;
29  private static final FileSearchData.FileType FILE_TYPE = FileSearchData.FileType.VIDEO;
30 
34  VideoFilterPanel() {
35  super();
36  initComponents();
37  addFilter(new SizeFilterPanel(FileSearchData.FileType.VIDEO), false, null, 0);
38  addFilter(new DataSourceFilterPanel(), false, null, 0);
39  int[] pastOccurrencesIndices;
40  if (!CentralRepository.isEnabled()) {
41  pastOccurrencesIndices = new int[]{0};
42  } else {
43  pastOccurrencesIndices = new int[]{1, 2, 3, 4, 5, 6, 7};
44  }
45  addFilter(new PastOccurrencesFilterPanel(), true, pastOccurrencesIndices, 0);
46  addFilter(new UserCreatedFilterPanel(), false, null, 1);
47  addFilter(new HashSetFilterPanel(), false, null, 1);
48  addFilter(new InterestingItemsFilterPanel(), false, null, 1);
49  addFilter(new ObjectDetectedFilterPanel(), false, null, 1);
50  addFilter(new ParentFolderFilterPanel(), false, null, 1);
51  addPanelsToScrollPane(videoFiltersSplitPane);
52  }
53 
59  @SuppressWarnings("unchecked")
60  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
61  private void initComponents() {
62 
63  javax.swing.JScrollPane videoFiltersScrollPane = new javax.swing.JScrollPane();
64  javax.swing.JPanel videoFiltersPanel = new javax.swing.JPanel();
65  videoFiltersSplitPane = new javax.swing.JSplitPane();
66 
67  setLayout(new java.awt.BorderLayout());
68 
69  videoFiltersScrollPane.setPreferredSize(new java.awt.Dimension(312, 102));
70 
71  videoFiltersPanel.setPreferredSize(new java.awt.Dimension(310, 100));
72 
73  videoFiltersSplitPane.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(VideoFilterPanel.class, "VideoFilterPanel.videoFiltersSplitPane.border.title"))); // NOI18N
74  videoFiltersSplitPane.setResizeWeight(0.5);
75 
76  javax.swing.GroupLayout videoFiltersPanelLayout = new javax.swing.GroupLayout(videoFiltersPanel);
77  videoFiltersPanel.setLayout(videoFiltersPanelLayout);
78  videoFiltersPanelLayout.setHorizontalGroup(
79  videoFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
80  .addGroup(videoFiltersPanelLayout.createSequentialGroup()
81  .addGap(8, 8, 8)
82  .addComponent(videoFiltersSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
83  .addGap(8, 8, 8))
84  );
85  videoFiltersPanelLayout.setVerticalGroup(
86  videoFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87  .addGroup(videoFiltersPanelLayout.createSequentialGroup()
88  .addGap(8, 8, 8)
89  .addComponent(videoFiltersSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE)
90  .addGap(8, 8, 8))
91  );
92 
93  videoFiltersScrollPane.setViewportView(videoFiltersPanel);
94 
95  add(videoFiltersScrollPane, java.awt.BorderLayout.CENTER);
96  }// </editor-fold>//GEN-END:initComponents
97  @Override
98  FileSearchData.FileType getFileType() {
99  return FILE_TYPE;
100  }
101 
102  // Variables declaration - do not modify//GEN-BEGIN:variables
103  private javax.swing.JSplitPane videoFiltersSplitPane;
104  // End of variables declaration//GEN-END:variables
105 
106 }

Copyright © 2012-2020 Basis Technology. Generated on: Mon Jul 6 2020
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.