a33d6c1e58c33acdca24a7b87bcb513cd33bfb42
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / widgets / timegraph / TimeGraphPresentationProvider.java
1 /*******************************************************************************
2 * Copyright (c) 2009, 2013 Ericsson
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 * Alvaro Sanchez-Leon - Initial API and implementation
11 * Patrick Tasse - Refactoring
12 *******************************************************************************/
13
14 package org.eclipse.linuxtools.tmf.ui.widgets.timegraph;
15
16 import java.util.Map;
17
18 import org.eclipse.linuxtools.internal.tmf.ui.Messages;
19 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeEvent;
20 import org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry;
21 import org.eclipse.swt.graphics.GC;
22 import org.eclipse.swt.graphics.Image;
23 import org.eclipse.swt.graphics.Rectangle;
24
25 /**
26 * Provider class for the time graph provider
27 *
28 * @version 1.0
29 * @author Patrick Tasse
30 *
31 */
32 public class TimeGraphPresentationProvider implements ITimeGraphPresentationProvider {
33
34 // ------------------------------------------------------------------------
35 // Constants
36 // ------------------------------------------------------------------------
37 private static final int DEFAULT_ITEM_HEIGHT = 19;
38
39 // ------------------------------------------------------------------------
40 // Operations
41 // ------------------------------------------------------------------------
42
43 @Override
44 public String getStateTypeName() {
45 return Messages.TmfTimeLegend_TRACE_STATES;
46 }
47
48 /**
49 * @see org.eclipse.linuxtools.tmf.ui.widgets.timegraph.ITimeGraphPresentationProvider#getStateTypeName(org.eclipse.linuxtools.tmf.ui.widgets.timegraph.model.ITimeGraphEntry)
50 * @since 2.0
51 */
52 @Override
53 public String getStateTypeName(ITimeGraphEntry entry) {
54 return null;
55 }
56
57 @Override
58 public StateItem[] getStateTable() {
59 return null;
60 }
61
62 @Override
63 public int getStateTableIndex(ITimeEvent event) {
64 return 0;
65 }
66
67 @Override
68 public void postDrawControl(Rectangle bounds, GC gc) {
69 // Override to add own drawing code
70 }
71
72 @Override
73 public void postDrawEntry(ITimeGraphEntry entry, Rectangle bounds, GC gc) {
74 // Override to add own drawing code
75 }
76
77 @Override
78 public void postDrawEvent(ITimeEvent event, Rectangle bounds, GC gc) {
79 // Override to add own drawing code
80 }
81
82 @Override
83 public int getItemHeight(ITimeGraphEntry entry) {
84 return DEFAULT_ITEM_HEIGHT;
85 }
86
87 @Override
88 public Image getItemImage(ITimeGraphEntry entry) {
89 return null;
90 }
91
92 @Override
93 public String getEventName(ITimeEvent event) {
94 return null;
95 }
96
97 @Override
98 public Map<String, String> getEventHoverToolTipInfo(ITimeEvent event) {
99 return null;
100 }
101
102 /**
103 * @since 2.0
104 */
105 @Override
106 public Map<String, String> getEventHoverToolTipInfo(ITimeEvent event, long hoverTime) {
107 return getEventHoverToolTipInfo(event);
108 }
109
110 }
This page took 0.034638 seconds and 4 git commands to generate.