Autopsy  4.17.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.ui;
20 
24 
28 final class VideoFilterPanel extends AbstractFiltersPanel {
29 
30  private static final long serialVersionUID = 1L;
31  private static final SearchData.Type TYPE = SearchData.Type.VIDEO;
32 
36  @ThreadConfined(type = ThreadConfined.ThreadType.AWT)
37  VideoFilterPanel() {
38  super();
39  initComponents();
40  SizeFilterPanel sizeFilterPanel = new SizeFilterPanel(TYPE);
41  int[] sizeIndicesSelected = {3, 4, 5};
42  addFilter(sizeFilterPanel, true, sizeIndicesSelected, 0);
43  addFilter(new DataSourceFilterPanel(), false, null, 0);
44  int[] pastOccurrencesIndices;
45  if (!CentralRepository.isEnabled()) {
46  pastOccurrencesIndices = new int[]{0};
47  } else {
48  pastOccurrencesIndices = new int[]{2, 3, 4};
49  }
50  addFilter(new PastOccurrencesFilterPanel(TYPE), true, pastOccurrencesIndices, 0);
51  addFilter(new UserCreatedFilterPanel(), false, null, 1);
52  addFilter(new HashSetFilterPanel(), false, null, 1);
53  addFilter(new InterestingItemsFilterPanel(), false, null, 1);
54  addFilter(new ObjectDetectedFilterPanel(), false, null, 1);
55  addFilter(new ParentFolderFilterPanel(), false, null, 1);
56  addPanelsToScrollPane(videoFiltersSplitPane);
57  }
58 
64  @SuppressWarnings("unchecked")
65  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
66  private void initComponents() {
67 
68  javax.swing.JScrollPane videoFiltersScrollPane = new javax.swing.JScrollPane();
69  javax.swing.JPanel videoFiltersPanel = new javax.swing.JPanel();
70  videoFiltersSplitPane = new javax.swing.JSplitPane();
71 
72  setLayout(new java.awt.BorderLayout());
73 
74  videoFiltersScrollPane.setPreferredSize(new java.awt.Dimension(312, 102));
75 
76  videoFiltersPanel.setPreferredSize(new java.awt.Dimension(310, 100));
77 
78  videoFiltersSplitPane.setBorder(javax.swing.BorderFactory.createTitledBorder(org.openide.util.NbBundle.getMessage(VideoFilterPanel.class, "VideoFilterPanel.videoFiltersSplitPane.border.title"))); // NOI18N
79  videoFiltersSplitPane.setResizeWeight(0.5);
80 
81  javax.swing.GroupLayout videoFiltersPanelLayout = new javax.swing.GroupLayout(videoFiltersPanel);
82  videoFiltersPanel.setLayout(videoFiltersPanelLayout);
83  videoFiltersPanelLayout.setHorizontalGroup(
84  videoFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
85  .addGroup(videoFiltersPanelLayout.createSequentialGroup()
86  .addGap(8, 8, 8)
87  .addComponent(videoFiltersSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 294, Short.MAX_VALUE)
88  .addGap(8, 8, 8))
89  );
90  videoFiltersPanelLayout.setVerticalGroup(
91  videoFiltersPanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
92  .addGroup(videoFiltersPanelLayout.createSequentialGroup()
93  .addGap(8, 8, 8)
94  .addComponent(videoFiltersSplitPane, javax.swing.GroupLayout.DEFAULT_SIZE, 84, Short.MAX_VALUE)
95  .addGap(8, 8, 8))
96  );
97 
98  videoFiltersScrollPane.setViewportView(videoFiltersPanel);
99 
100  add(videoFiltersScrollPane, java.awt.BorderLayout.CENTER);
101  }// </editor-fold>//GEN-END:initComponents
102  @Override
103  SearchData.Type getType() {
104  return TYPE;
105  }
106 
107  // Variables declaration - do not modify//GEN-BEGIN:variables
108  private javax.swing.JSplitPane videoFiltersSplitPane;
109  // End of variables declaration//GEN-END:variables
110 
111 }
Type(int value, String displayName, Collection< String > mediaTypes, Collection< BlackboardArtifact.ARTIFACT_TYPE > artifactTypes)

Copyright © 2012-2021 Basis Technology. Generated on: Tue Jan 19 2021
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.