| 1 | /******************************************************************************* |
| 2 | * Copyright (c) 2010, 2012 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 | * Matthew Khouzam - Extracted from TmfEventsView |
| 11 | ******************************************************************************/ |
| 12 | |
| 13 | package org.eclipse.linuxtools.tmf.ui.widgets.virtualtable; |
| 14 | /** |
| 15 | * ColumnData |
| 16 | * @author Matthew Khouzam |
| 17 | * @version 1.0 |
| 18 | * |
| 19 | */ |
| 20 | public class ColumnData { |
| 21 | /** |
| 22 | * The title of the column |
| 23 | */ |
| 24 | public final String header; |
| 25 | /** |
| 26 | * the width of the column in pixels |
| 27 | */ |
| 28 | public final int width; |
| 29 | /** |
| 30 | * the alignment of the column |
| 31 | */ |
| 32 | public final int alignment; |
| 33 | |
| 34 | /** |
| 35 | * Constructor |
| 36 | * @param h header (title) |
| 37 | * @param w width |
| 38 | * @param a alignment |
| 39 | */ |
| 40 | public ColumnData(String h, int w, int a) { |
| 41 | header = h; |
| 42 | width = w; |
| 43 | alignment = a; |
| 44 | } |
| 45 | |
| 46 | } |