Commit | Line | Data |
---|---|---|
e8251298 | 1 | /******************************************************************************* |
ed902a2b | 2 | * Copyright (c) 2013, 2014 Ericsson |
e8251298 PT |
3 | * |
4 | * All rights reserved. This program and the accompanying materials are | |
5 | * made available under the terms of the Eclipse Public License v1.0 which | |
6 | * accompanies this distribution, and is available at | |
7 | * http://www.eclipse.org/legal/epl-v10.html | |
8 | * | |
9 | * Contributors: | |
10 | * Patrick Tasse - Initial API and implementation | |
11 | *******************************************************************************/ | |
12 | ||
2bdf0193 | 13 | package org.eclipse.tracecompass.tmf.ui.views.callstack; |
e8251298 | 14 | |
2bdf0193 | 15 | import org.eclipse.tracecompass.tmf.ui.widgets.timegraph.model.TimeEvent; |
e8251298 PT |
16 | |
17 | /** | |
18 | * Time Event implementation specific to the Call Stack View | |
19 | * | |
20 | * @author Patrick Tasse | |
e8251298 PT |
21 | */ |
22 | public class CallStackEvent extends TimeEvent { | |
23 | ||
e8251298 PT |
24 | /** |
25 | * Standard constructor | |
26 | * | |
27 | * @param entry | |
28 | * The entry that this event affects | |
29 | * @param time | |
30 | * The start time of the event | |
31 | * @param duration | |
32 | * The duration of the event | |
33 | * @param value | |
34 | * The event value (1-256) | |
35 | */ | |
36 | public CallStackEvent(CallStackEntry entry, long time, long duration, int value) { | |
beb1b921 | 37 | super(entry, time, duration, value); |
e8251298 | 38 | } |
6f8332c4 AM |
39 | |
40 | /** | |
41 | * @since 2.1 | |
42 | */ | |
43 | @Override | |
44 | public CallStackEntry getEntry() { | |
45 | /* Type enforced at constructor */ | |
46 | return (CallStackEntry) fEntry; | |
47 | } | |
48 | ||
e8251298 | 49 | } |