Autopsy  4.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.datamodel.eventtype;
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 
32 public class RootEventType implements EventType {
33 
34  @Override
35  public List<RootEventType> getSiblingTypes() {
36  return Collections.singletonList(this);
37  }
38 
39  @Override
42  }
43 
44  private RootEventType() {
45  }
46 
47  public static RootEventType getInstance() {
49  }
50 
51  @Override
52  public EventType getSubType(String string) {
53  return BaseTypes.valueOf(string);
54  }
55 
56  @Override
57  public int ordinal() {
58  return 0;
59  }
60 
61  private static class RootEventTypeHolder {
62 
63  private static final RootEventType INSTANCE = new RootEventType();
64 
65  private RootEventTypeHolder() {
66  }
67  }
68 
69  @Override
70  public Color getColor() {
71  return Color.hsb(359, .9, .9, 0);
72  }
73 
74  @Override
76  return this;
77  }
78 
79  @Override
80  public List<BaseTypes> getSubTypes() {
81  return Arrays.asList(BaseTypes.values());
82  }
83 
84  @Override
85  public String getIconBase() {
86  throw new UnsupportedOperationException("Not supported yet."); // NON-NLS //To change body of generated methods, choose Tools | Templates.
87  }
88 
89  @Override
90  public String getDisplayName() {
91  return NbBundle.getMessage(this.getClass(), "RootEventType.eventTypes.name");
92  }
93 
94  @Override
95  public Image getFXImage() {
96  return null;
97  }
98 }

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