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