tmf: formatting of tmf.ui.statistics
[deliverable/tracecompass.git] / org.eclipse.linuxtools.tmf.ui / src / org / eclipse / linuxtools / tmf / ui / views / statistics / model / ITmfStatisticsColumnData.java
CommitLineData
79e08fd0 1/*******************************************************************************
b544077e 2 * Copyright (c) 2011, 2012 Ericsson
09667aa4 3 *
79e08fd0
BH
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
09667aa4 8 *
79e08fd0 9 * Contributors:
09667aa4 10 * Mathieu Denis <mathieu.denis@polymtl.ca> - Initial API and Implementation
79e08fd0
BH
11 *******************************************************************************/
12
13package org.eclipse.linuxtools.tmf.ui.views.statistics.model;
14
15import org.eclipse.jface.viewers.ColumnLabelProvider;
16import org.eclipse.jface.viewers.ViewerComparator;
17import org.eclipse.linuxtools.tmf.ui.views.statistics.model.TmfBaseColumnData.ITmfColumnPercentageProvider;
18
19/**
09667aa4
MD
20 * Provide the basic interface to create a statistics column for the statistics
21 * table tree.
22 *
23 * @version 1.0
24 * @author Mathieu Denis
79e08fd0
BH
25 */
26public interface ITmfStatisticsColumnData {
27
28 /**
29 * Return the column name.
09667aa4 30 *
79e08fd0
BH
31 * @return the name of the column.
32 */
33 public String getHeader();
09667aa4 34
79e08fd0
BH
35 /**
36 * Return the width of the column at the creation.
09667aa4 37 *
79e08fd0
BH
38 * @return the width of the column.
39 */
40 public int getWidth();
09667aa4 41
79e08fd0
BH
42 /**
43 * Return the alignment of the column.
09667aa4 44 *
79e08fd0
BH
45 * @see org.eclipse.swt.SWT
46 * @return an integer representing the alignment inside the column.
47 */
48 public int getAlignment();
09667aa4 49
79e08fd0 50 /**
09667aa4
MD
51 * Provide the text to show in the tooltip when the cursor comes over the
52 * column header.
53 *
79e08fd0
BH
54 * @return text to show in the tooltip
55 */
56 public String getTooltip();
09667aa4 57
79e08fd0 58 /**
09667aa4
MD
59 * Return the labelProvider which provides the information to put in column
60 * cells.
61 *
79e08fd0
BH
62 * @return a ColumnLabelProvider.
63 */
64 public ColumnLabelProvider getLabelProvider();
09667aa4 65
79e08fd0
BH
66 /**
67 * Return a ViewerComparator used to sort viewer's contents.
09667aa4 68 *
79e08fd0
BH
69 * @return the comparator.
70 */
71 public ViewerComparator getComparator();
09667aa4 72
79e08fd0 73 /**
09667aa4
MD
74 * Return the provider of the percentage. Used to draw bar charts in
75 * columns.
76 *
79e08fd0
BH
77 * @return the percentageProvider.
78 */
79 public ITmfColumnPercentageProvider getPercentageProvider();
80}
This page took 0.032168 seconds and 5 git commands to generate.