Autopsy  3.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 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 
20 /*
21  * ImageDetailsPanel.java
22  *
23  * Created on May 2, 2011, 3:53:49 PM
24  */
25 
26 package org.sleuthkit.autopsy.directorytree;
27 
28 import java.awt.*;
29 import java.awt.event.ActionListener;
30 
35 class ImageDetailsPanel extends javax.swing.JPanel {
36 
38  ImageDetailsPanel() {
39  initComponents();
40  }
41 
47  @SuppressWarnings("unchecked")
48  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
49  private void initComponents() {
50 
51  imageInfoLabel = new javax.swing.JLabel();
52  imgNameLabel = new javax.swing.JLabel();
53  imgTypeLabel = new javax.swing.JLabel();
54  imgSectorSizeLabel = new javax.swing.JLabel();
55  imgNameValue = new javax.swing.JLabel();
56  imgTypeValue = new javax.swing.JLabel();
57  imgSectorSizeValue = new javax.swing.JLabel();
58  OKButton = new javax.swing.JButton();
59  imgTotalSizeLabel = new javax.swing.JLabel();
60  imgTotalSizeValue = new javax.swing.JLabel();
61  imgHashLabel = new javax.swing.JLabel();
62  imgHashValue = new javax.swing.JLabel();
63 
64  imageInfoLabel.setFont(imageInfoLabel.getFont().deriveFont(Font.BOLD, 18));
65  imageInfoLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imageInfoLabel.text")); // NOI18N
66 
67  imgNameLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgNameLabel.text")); // NOI18N
68 
69  imgTypeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTypeLabel.text")); // NOI18N
70 
71  imgSectorSizeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgSectorSizeLabel.text")); // NOI18N
72 
73  imgNameValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgNameValue.text")); // NOI18N
74 
75  imgTypeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTypeValue.text")); // NOI18N
76 
77  imgSectorSizeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgSectorSizeValue.text")); // NOI18N
78 
79  OKButton.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.OKButton.text")); // NOI18N
80 
81  imgTotalSizeLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTotalSizeLabel.text")); // NOI18N
82 
83  imgTotalSizeValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgTotalSizeValue.text")); // NOI18N
84 
85  imgHashLabel.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgHashLabel.text")); // NOI18N
86 
87  imgHashValue.setText(org.openide.util.NbBundle.getMessage(ImageDetailsPanel.class, "ImageDetailsPanel.imgHashValue.text")); // NOI18N
88 
89  javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
90  this.setLayout(layout);
91  layout.setHorizontalGroup(
92  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
93  .addGroup(layout.createSequentialGroup()
94  .addGap(0, 68, Short.MAX_VALUE)
95  .addComponent(imageInfoLabel)
96  .addContainerGap(78, Short.MAX_VALUE))
97  .addGroup(layout.createSequentialGroup()
98  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
99  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
100  .addComponent(imgNameLabel)
101  .addComponent(imgTypeLabel)
102  .addComponent(imgSectorSizeLabel)
103  .addComponent(imgTotalSizeLabel)
104  .addComponent(imgHashLabel))
105  .addGap(18, 18, 18)
106  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
107  .addComponent(imgNameValue)
108  .addComponent(imgTypeValue)
109  .addComponent(imgSectorSizeValue)
110  .addComponent(imgTotalSizeValue)
111  .addComponent(imgHashValue))
112  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
113  .addGroup(layout.createSequentialGroup()
114  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
115  .addComponent(OKButton, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
116  .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
117  );
118  layout.setVerticalGroup(
119  layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
120  .addGroup(layout.createSequentialGroup()
121  .addGap(38, 38, 38)
122  .addComponent(imageInfoLabel)
123  .addGap(18, 18, 18)
124  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
125  .addGroup(layout.createSequentialGroup()
126  .addComponent(imgNameValue)
127  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
128  .addComponent(imgTypeValue)
129  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
130  .addComponent(imgSectorSizeValue)
131  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
132  .addComponent(imgTotalSizeValue)
133  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
134  .addComponent(imgHashValue))
135  .addGroup(layout.createSequentialGroup()
136  .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
137  .addGroup(layout.createSequentialGroup()
138  .addComponent(imgNameLabel)
139  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
140  .addComponent(imgTypeLabel)
141  .addGap(25, 25, 25))
142  .addGroup(layout.createSequentialGroup()
143  .addGap(50, 50, 50)
144  .addComponent(imgSectorSizeLabel)))
145  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
146  .addComponent(imgTotalSizeLabel)
147  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
148  .addComponent(imgHashLabel)))
149  .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 64, Short.MAX_VALUE)
150  .addComponent(OKButton)
151  .addContainerGap())
152  );
153  }// </editor-fold>//GEN-END:initComponents
154 
155 
156  // Variables declaration - do not modify//GEN-BEGIN:variables
157  private javax.swing.JButton OKButton;
158  private javax.swing.JLabel imageInfoLabel;
159  private javax.swing.JLabel imgHashLabel;
160  private javax.swing.JLabel imgHashValue;
161  private javax.swing.JLabel imgNameLabel;
162  private javax.swing.JLabel imgNameValue;
163  private javax.swing.JLabel imgSectorSizeLabel;
164  private javax.swing.JLabel imgSectorSizeValue;
165  private javax.swing.JLabel imgTotalSizeLabel;
166  private javax.swing.JLabel imgTotalSizeValue;
167  private javax.swing.JLabel imgTypeLabel;
168  private javax.swing.JLabel imgTypeValue;
169  // End of variables declaration//GEN-END:variables
170 
171 
177  public void setImgNameValue(String arg){
178  imgNameValue.setText(arg);
179  }
180 
186  public void setImgTypeValue(String arg){
187  imgTypeValue.setText(arg);
188  }
189 
195  public void setImgSectorSizeValue(String arg){
196  imgSectorSizeValue.setText(arg);
197  }
198 
204  public void setImgTotalSizeValue(String arg) {
205  imgTotalSizeValue.setText(arg);
206  }
207 
213  public void setImgHashValue(String arg) {
214  imgHashValue.setText(arg);
215  }
216 
217  public void setVisibleHashInfo(boolean visible) {
218  imgHashLabel.setVisible(visible);
219  imgHashValue.setVisible(visible);
220  }
226  public void setOKButtonActionListener(ActionListener e){
227  OKButton.addActionListener(e);
228  }
229 }

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