Autopsy 4.22.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
ImageDetailsPanel.java
Go to the documentation of this file.
1/*
2 * Autopsy Forensic Browser
3 *
4 * Copyright 2011-2018 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 */
19package org.sleuthkit.autopsy.directorytree;
20
21import java.awt.event.ActionListener;
22
26@SuppressWarnings("PMD.SingularField") // UI widgets cause lots of false positives
27class ImageDetailsPanel extends javax.swing.JPanel {
28
32 ImageDetailsPanel() {
33 initComponents();
34 }
35
41 @SuppressWarnings("unchecked")
42 // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
43 private void initComponents() {
44
45 imageInfoLabel = new javax.swing.JLabel();
46 imgNameLabel = new javax.swing.JLabel();
47 imgTypeLabel = new javax.swing.JLabel();
48 imgSectorSizeLabel = new javax.swing.JLabel();
49 imgNameValue = new javax.swing.JLabel();
50 imgTypeValue = new javax.swing.JLabel();
51 imgSectorSizeValue = new javax.swing.JLabel();
52 OKButton = new javax.swing.JButton();
53 imgTotalSizeLabel = new javax.swing.JLabel();
54 imgTotalSizeValue = new javax.swing.JLabel();
55 imgHashLabel = new javax.swing.JLabel();
56 imgHashValue = new javax.swing.JLabel();
57
58 imageInfoLabel.setFont(imageInfoLabel.getFont().deriveFont(imageInfoLabel.getFont().getStyle() | java.awt.Font.BOLD, imageInfoLabel.getFont().getSize()+7));
59 imageInfoLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imageInfoLabel.text")); // NOI18N
60
61 imgNameLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgNameLabel.text")); // NOI18N
62
63 imgTypeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTypeLabel.text")); // NOI18N
64
65 imgSectorSizeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgSectorSizeLabel.text")); // NOI18N
66
67 imgNameValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgNameValue.text")); // NOI18N
68
69 imgTypeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTypeValue.text")); // NOI18N
70
71 imgSectorSizeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgSectorSizeValue.text")); // NOI18N
72
73 OKButton.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.OKButton.text")); // NOI18N
74
75 imgTotalSizeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTotalSizeLabel.text")); // NOI18N
76
77 imgTotalSizeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTotalSizeValue.text")); // NOI18N
78
79 imgHashLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgHashLabel.text")); // NOI18N
80
81 imgHashValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgHashValue.text")); // NOI18N
82
83 javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
84 this.setLayout(layout);
85 layout.setHorizontalGroup(
86 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
87 .addGroup(layout.createSequentialGroup()
88 .addGap(0, 68, Short.MAX_VALUE)
89 .addComponent(imageInfoLabel)
90 .addContainerGap(78, Short.MAX_VALUE))
91 .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
92 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
93 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
94 .addGroup(layout.createSequentialGroup()
95 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
96 .addComponent(imgNameLabel)
97 .addComponent(imgTypeLabel)
98 .addComponent(imgSectorSizeLabel)
99 .addComponent(imgTotalSizeLabel)
100 .addComponent(imgHashLabel))
101 .addGap(18, 18, 18)
102 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
103 .addComponent(imgNameValue)
104 .addComponent(imgTypeValue)
105 .addComponent(imgSectorSizeValue)
106 .addComponent(imgTotalSizeValue)
107 .addComponent(imgHashValue)))
108 .addComponent(OKButton))
109 .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
110 );
111 layout.setVerticalGroup(
112 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
113 .addGroup(layout.createSequentialGroup()
114 .addGap(38, 38, 38)
115 .addComponent(imageInfoLabel)
116 .addGap(18, 18, 18)
117 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
118 .addGroup(layout.createSequentialGroup()
119 .addComponent(imgNameValue)
120 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
121 .addComponent(imgTypeValue)
122 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
123 .addComponent(imgSectorSizeValue)
124 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
125 .addComponent(imgTotalSizeValue)
126 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
127 .addComponent(imgHashValue))
128 .addGroup(layout.createSequentialGroup()
129 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
130 .addGroup(layout.createSequentialGroup()
131 .addComponent(imgNameLabel)
132 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
133 .addComponent(imgTypeLabel)
134 .addGap(25, 25, 25))
135 .addComponent(imgSectorSizeLabel))
136 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
137 .addComponent(imgTotalSizeLabel)
138 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
139 .addComponent(imgHashLabel)))
140 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE)
141 .addComponent(OKButton)
142 .addContainerGap())
143 );
144 }// </editor-fold>//GEN-END:initComponents
145
146 // Variables declaration - do not modify//GEN-BEGIN:variables
147 private javax.swing.JButton OKButton;
148 private javax.swing.JLabel imageInfoLabel;
149 private javax.swing.JLabel imgHashLabel;
150 private javax.swing.JLabel imgHashValue;
151 private javax.swing.JLabel imgNameLabel;
152 private javax.swing.JLabel imgNameValue;
153 private javax.swing.JLabel imgSectorSizeLabel;
154 private javax.swing.JLabel imgSectorSizeValue;
155 private javax.swing.JLabel imgTotalSizeLabel;
156 private javax.swing.JLabel imgTotalSizeValue;
157 private javax.swing.JLabel imgTypeLabel;
158 private javax.swing.JLabel imgTypeValue;
159 // End of variables declaration//GEN-END:variables
160
166 public void setImgNameValue(String arg) {
167 imgNameValue.setText(arg);
168 }
169
175 public void setImgTypeValue(String arg) {
176 imgTypeValue.setText(arg);
177 }
178
184 public void setImgSectorSizeValue(String arg) {
185 imgSectorSizeValue.setText(arg);
186 }
187
193 public void setImgTotalSizeValue(String arg) {
194 imgTotalSizeValue.setText(arg);
195 }
196
202 public void setImgHashValue(String arg) {
203 imgHashValue.setText(arg);
204 }
205
206 public void setVisibleHashInfo(boolean visible) {
207 imgHashLabel.setVisible(visible);
208 imgHashValue.setVisible(visible);
209 }
210
216 public void setOKButtonActionListener(ActionListener e) {
217 OKButton.addActionListener(e);
218 }
219}

Copyright © 2012-2024 Sleuth Kit Labs. Generated on:
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.