1 /**********************************************************************
2 * Copyright (c) 2005, 2013 IBM Corporation, Ericsson
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * IBM - Initial API and implementation
10 * Bernd Hufmann - Updated for TMF
11 **********************************************************************/
13 package org
.eclipse
.tracecompass
.tmf
.ui
.views
.uml2sd
.preferences
;
15 import org
.eclipse
.tracecompass
.tmf
.ui
.views
.uml2sd
.drawings
.IColor
;
16 import org
.eclipse
.tracecompass
.tmf
.ui
.views
.uml2sd
.drawings
.IFont
;
19 * Interface for accessing sequence diagram preferences.
24 public interface ISDPreferences
{
27 * The link font with zoom preference name
29 static final String PREF_LINK_FONT
= "PREF_LINK_FONT"; //$NON-NLS-1$
31 * The exclude preference time preference name
33 static final String PREF_EXCLUDE_EXTERNAL_TIME
= "PREF_EXCLUDE_EXTERNAL_TIME"; //$NON-NLS-1$
35 * The use gradient color preferences name
37 static final String PREF_USE_GRADIENT
= "PREF_USE_GRADIENT"; //$NON-NLS-1$
39 * The lifeline spacing width preference name
41 static final String PREF_LIFELINE_WIDTH
= "PREF_LIFELINE_WIDTH"; //$NON-NLS-1$
43 * The time compression bar font preference name
45 static final String PREF_TIME_COMP
= "PREF_TIME_COMP"; //$NON-NLS-1$
47 * The lifeline font preference name
49 static final String PREF_LIFELINE
= "PREF_LIFELINE"; //$NON-NLS-1$
51 * The frame font preference name
53 static final String PREF_FRAME
= "PREF_FRAME"; //$NON-NLS-1$
55 * The frame name font preference name
57 static final String PREF_FRAME_NAME
= "PREF_FRAME_NAME"; //$NON-NLS-1$
59 * The execution occurrence font preference name
61 static final String PREF_EXEC
= "PREF_EXEC"; //$NON-NLS-1$
63 * The synchronous message font preference name
65 static final String PREF_SYNC_MESS
= "PREF_SYNC_MESS"; //$NON-NLS-1$
67 * The synchronous message return font preference name
69 static final String PREF_SYNC_MESS_RET
= "PREF_SYNC_MESS_RET"; //$NON-NLS-1$
71 * The asynchronous message font preference name
73 static final String PREF_ASYNC_MESS
= "PREF_ASYNC_MESS"; //$NON-NLS-1$
75 * The asynchronous message return font preference name
77 static final String PREF_ASYNC_MESS_RET
= "PREF_ASYNC_MESS_RET"; //$NON-NLS-1$
79 * The lifeline header font (header = the always visible part of a lifeline)
81 static final String PREF_LIFELINE_HEADER
= "PREF_LIFELINE_HEADER"; //$NON-NLS-1$
83 * The enable tooltip preference name
85 static final String PREF_TOOLTIP
= "PREF_TOOLTIP"; //$NON-NLS-1$
88 * Returns the background color for the given preference name (font preference name)
90 * @param prefId The preference name
93 IColor
getBackGroundColor(String prefId
);
96 * Returns the foreground color for the given preference name (font preference name)
98 * @param prefId A preference name
101 IColor
getForeGroundColor(String prefId
);
104 * Returns the font color for the given preference name (font preference name)
106 * @param prefId A preference name
109 IColor
getFontColor(String prefId
);
112 * Returns the font for the given preference name
114 * @param prefId the preference name
117 IFont
getFont(String prefId
);
120 * Returns the time compression bar selection color
122 * @return the time compression bar selection color
124 IColor
getTimeCompressionSelectionColor();
127 * Returns the background color used to draw selection
129 * @return the background color
131 IColor
getBackGroundColorSelection();
134 * Returns the foreground color used to draw selection
136 * @return the foreground color
138 IColor
getForeGroundColorSelection();
141 * Returns whether to use gradient color or not
143 * @return whether to use gradient color or not
145 boolean useGradienColor();