1 /**********************************************************************
2 * Copyright (c) 2005, 2006, 2011 IBM Corporation and others.
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
7 * $Id: ISDPreferences.java,v 1.2 2006/09/20 20:56:27 ewchan Exp $
10 * IBM - Initial API and implementation
11 * Bernd Hufmann - Updated for TMF
12 **********************************************************************/
13 package org
.eclipse
.linuxtools
.tmf
.ui
.views
.uml2sd
.drawings
;
19 public interface ISDPreferences
{
22 * The link font with zoom preference name
24 public static final String PREF_LINK_FONT
= "PREF_LINK_FONT"; //$NON-NLS-1$
26 * The exclude preference time preference name
28 public static final String PREF_EXCLUDE_EXTERNAL_TIME
= "PREF_EXCLUDE_EXTERNAL_TIME"; //$NON-NLS-1$
30 * The use gradient color preferences name
32 public static final String PREF_USE_GRADIENT
= "PREF_USE_GRADIENT"; //$NON-NLS-1$
34 * The lifeline spacing width preference name
36 public static final String PREF_LIFELINE_WIDTH
= "PREF_LIFELINE_WIDTH"; //$NON-NLS-1$
38 * The time compression bar font preference name
40 public static final String PREF_TIME_COMP
= "PREF_TIME_COMP"; //$NON-NLS-1$
42 * The lifeline font preference name
44 public static final String PREF_LIFELINE
= "PREF_LIFELINE"; //$NON-NLS-1$
46 * The frame font preference name
48 public static final String PREF_FRAME
= "PREF_FRAME"; //$NON-NLS-1$
50 * The frame name font preference name
52 public static final String PREF_FRAME_NAME
= "PREF_FRAME_NAME"; //$NON-NLS-1$
54 * The execution occurrence font preference name
56 public static final String PREF_EXEC
= "PREF_EXEC"; //$NON-NLS-1$
58 * The synchronous message font preference name
60 public static final String PREF_SYNC_MESS
= "PREF_SYNC_MESS"; //$NON-NLS-1$
62 * The synchronous message return font preference name
64 public static final String PREF_SYNC_MESS_RET
= "PREF_SYNC_MESS_RET"; //$NON-NLS-1$
66 * The asynchronous message font preference name
68 public static final String PREF_ASYNC_MESS
= "PREF_ASYNC_MESS"; //$NON-NLS-1$
70 * The asynchronous message return font preference name
72 public static final String PREF_ASYNC_MESS_RET
= "PREF_ASYNC_MESS_RET"; //$NON-NLS-1$
74 * The lifeline header font (header = the always visible part of a lifeline)
76 public static final String PREF_LIFELINE_HEADER
= "PREF_LIFELINE_HEADER"; //$NON-NLS-1$
78 * The enable tooltip preference name
80 public static final String PREF_TOOLTIP
= "PREF_TOOLTIP"; //$NON-NLS-1$
83 * Returns the background color for the given preference name (font preference name)
85 * @param prefId the preference nam
88 public IColor
getBackGroundColor(String prefId
);
91 * Returns the foreground color for the given preference name (font preference name)
96 public IColor
getForeGroundColor(String prefId
);
99 * Returns the font color for the given preference name (font preference name)
104 public IColor
getFontColor(String prefId
);
107 * Returns the font for the given preference name
109 * @param prefId the preference name
112 public IFont
getFont(String prefId
);
115 * Returns the time compression bar selection color
119 public IColor
getTimeCompressionSelectionColor();
122 * Returns the background color used to draw selection
126 public IColor
getBackGroundColorSelection();
129 * Returns the foreground color used to draw selection
133 public IColor
getForeGroundColorSelection();
135 public boolean useGradienColor();