Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.ui.style.service.internal
Class StylePreferences

java.lang.Object
  extended by org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
      extended by eu.esdihumboldt.hale.ui.style.service.internal.StylePreferences
All Implemented Interfaces:
StylePreferenceConstants

public class StylePreferences
extends org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
implements StylePreferenceConstants

Style perferences

Author:
Simon Templer
Partner:
01 / Fraunhofer Institute for Computer Graphics Research

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.ui.style.service.internal.StylePreferenceConstants
KEY_DEFAULT_BACKGROUND, KEY_DEFAULT_WIDTH, KEY_SELECTION_COLOR, KEY_SELECTION_WIDTH, KEY_SOURCE_DEFAULT_COLOR, KEY_TRANSFORMED_DEFAULT_COLOR
 
Constructor Summary
StylePreferences()
           
 
Method Summary
static org.eclipse.swt.graphics.RGB getDefaultBackground()
          Get the default background
static Color getDefaultColor(DataSet dataSet)
          Get the default color for the given data set.
static int getDefaultWidth()
          Get the default width
static Color getSelectionColor()
          Get the selection color
static int getSelectionWidth()
          Get the selection width
 void initializeDefaultPreferences()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StylePreferences

public StylePreferences()
Method Detail

initializeDefaultPreferences

public void initializeDefaultPreferences()
Specified by:
initializeDefaultPreferences in class org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer
See Also:
AbstractPreferenceInitializer.initializeDefaultPreferences()

getDefaultColor

public static Color getDefaultColor(DataSet dataSet)
Get the default color for the given data set.

Parameters:
dataSet - the data set
Returns:
the default color

getDefaultWidth

public static int getDefaultWidth()
Get the default width

Returns:
the default width

getSelectionColor

public static Color getSelectionColor()
Get the selection color

Returns:
the selection color

getSelectionWidth

public static int getSelectionWidth()
Get the selection width

Returns:
the selection width

getDefaultBackground

public static org.eclipse.swt.graphics.RGB getDefaultBackground()
Get the default background

Returns:
the default background

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d