Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
RootEventType.java
Go to the documentation of this file.
1 /*
2  * Autopsy Forensic Browser
3  *
4  * Copyright 2013 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.timeline.events.type;
20 
21 import java.util.Arrays;
22 import java.util.Collections;
23 import java.util.List;
24 import javafx.scene.image.Image;
25 import javafx.scene.paint.Color;
26 import org.openide.util.NbBundle;
28 
31 public class RootEventType implements EventType {
32 
33  @Override
34  public List<RootEventType> getSiblingTypes() {
35  return Collections.singletonList(this);
36  }
37 
38  @Override
41  }
42 
43  private RootEventType() {
44  }
45 
46  public static RootEventType getInstance() {
48  }
49 
50  @Override
51  public EventType getSubType(String string) {
52  return BaseTypes.valueOf(string);
53  }
54 
55  @Override
56  public int ordinal() {
57  return 0;
58  }
59 
60  private static class RootEventTypeHolder {
61 
62  private static final RootEventType INSTANCE = new RootEventType();
63 
64  private RootEventTypeHolder() {
65  }
66  }
67 
68  @Override
69  public Color getColor() {
70  return Color.hsb(359, .9, .9, 0);
71  }
72 
73  @Override
75  return this;
76  }
77 
78  @Override
79  public List<BaseTypes> getSubTypes() {
80  return Arrays.asList(BaseTypes.values());
81  }
82 
83  @Override
84  public String getIconBase() {
85  throw new UnsupportedOperationException("Not supported yet."); // NON-NLS //To change body of generated methods, choose Tools | Templates.
86  }
87 
88  @Override
89  public String getDisplayName() {
90  return NbBundle.getMessage(this.getClass(), "RootEventType.eventTypes.name");
91  }
92 
93  @Override
94  public Image getFXImage() {
95  return null;
96  }
97 }

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.