19 package org.sleuthkit.autopsy.contentviewers.contextviewer;
21 import java.util.ArrayList;
22 import java.util.List;
26 import static org.
sleuthkit.datamodel.BlackboardArtifact.ARTIFACT_TYPE.TSK_ASSOCIATED_OBJECT;
51 public ContextUsagePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact, Long dateTime) {
54 sourceContextArtifact = associatedArtifact;
70 @SuppressWarnings(
"unchecked")
79 setMaximumSize(
new java.awt.Dimension(32767, 55));
80 setMinimumSize(
new java.awt.Dimension(300, 55));
81 setPreferredSize(
new java.awt.Dimension(495, 55));
85 public void actionPerformed(java.awt.event.ActionEvent evt) {
94 javax.swing.GroupLayout layout =
new javax.swing.GroupLayout(
this);
95 this.setLayout(layout);
96 layout.setHorizontalGroup(
97 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
98 .addGroup(layout.createSequentialGroup()
100 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
101 .addComponent(
jUsageTextLabel, javax.swing.GroupLayout.DEFAULT_SIZE, 420, Short.MAX_VALUE))
102 .addGroup(layout.createSequentialGroup()
105 .addContainerGap(275, javax.swing.GroupLayout.PREFERRED_SIZE))
107 layout.setVerticalGroup(
108 layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
109 .addGroup(layout.createSequentialGroup()
110 .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
112 .addComponent(
jUsageNameLabel, javax.swing.GroupLayout.Alignment.TRAILING))
113 .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
115 .addGap(0, 11, Short.MAX_VALUE))
123 if (sourceContextArtifact != null) {
ContextUsagePanel(String sourceName, String sourceText, BlackboardArtifact associatedArtifact, Long dateTime)
void viewArtifact(final BlackboardArtifact art)
void showUsageButton(boolean show)
javax.swing.JLabel jUsageNameLabel
static final List< BlackboardArtifact.ARTIFACT_TYPE > SOURCE_CONTEXT_ARTIFACTS
final BlackboardArtifact sourceContextArtifact
javax.swing.JButton jUsageGoToResultButton
static Color getPanelBackground()
void setUsageName(String nameLabel)
javax.swing.JLabel jUsageTextLabel
void jUsageGoToResultButtonActionPerformed(java.awt.event.ActionEvent evt)
static final long serialVersionUID
void setUsageText(String text)
void showUsageText(boolean show)
static synchronized DirectoryTreeTopComponent findInstance()