Internalize lttng.core APIs
[deliverable/tracecompass.git] / org.eclipse.linuxtools.lttng.ui / src / org / eclipse / linuxtools / lttng / ui / views / latency / model / Config.java
CommitLineData
fbd124dd
BH
1/*******************************************************************************\r
2 * Copyright (c) 2010, 2011 Ericsson\r
3 * \r
4 * All rights reserved. This program and the accompanying materials are\r
5 * made available under the terms of the Eclipse Public License v1.0 which\r
6 * accompanies this distribution, and is available at\r
7 * http://www.eclipse.org/legal/epl-v10.html\r
8 * \r
9 * Contributors:\r
10 * Philippe Sawicki (INF4990.A2010@gmail.com) - Initial API and implementation\r
11 * Mathieu Denis (mathieu.denis55@gmail.com) - Refactor code\r
12 * Bernd Hufmann - Added and updated constants\r
13 *******************************************************************************/\r
14package org.eclipse.linuxtools.lttng.ui.views.latency.model;\r
15\r
16/**\r
17 * <b><u>Config</u></b>\r
18 * <p>\r
19 * Configuration class, holds some application constants.\r
20 * \r
21 * @author Philippe Sawicki\r
22 */\r
23public class Config {\r
24\r
25 /**\r
26 * Private constructor to defeat instantiation.\r
27 */\r
28 private Config() {\r
29 }\r
30\r
31 /**\r
32 * Time scale for TMF events;\r
33 */\r
1cceddbe 34 public static final byte TIME_SCALE = -9;\r
fbd124dd
BH
35 \r
36 /**\r
37 * Size of the point buffer holding point values before sending them to the view.\r
38 */\r
39 public static final int POINT_BUFFER_SIZE = 10000;\r
40\r
41 /**\r
42 * Histogram bar width.\r
43 */\r
44 public static final int DEFAULT_HISTOGRAM_BAR_WIDTH = 2;\r
45 \r
46 /**\r
47 * Histogram bar width increase step.\r
48 */\r
49 public static final int MIN_HISTOGRAM_BAR_WIDTH = 1;\r
50\r
51 /**\r
52 * Histogram bar width increase step.\r
53 */\r
54 public static final int MAX_HISTOGRAM_BAR_WIDTH = 16;\r
55\r
56 \r
57 /**\r
58 * Diameter of a point drawn on the chart (in pixels).\r
59 */\r
60 public static final int GRAPH_POINT_DIAMETER = 1;\r
61\r
62 /**\r
63 * Graph padding.\r
64 */\r
65 public static final int GRAPH_PADDING = 10;\r
66\r
67 /**\r
68 * Default number of buckets used in data models\r
69 */\r
70 public static final int DEFAULT_NUMBER_OF_BUCKETS = 2 * 1000;\r
71 \r
72 /**\r
73 * Invalid event time\r
74 */\r
75 public static final long INVALID_EVENT_TIME = -1;\r
76}
This page took 0.026593 seconds and 5 git commands to generate.