Class LineTracePreferences
java.lang.Object
org.eclipse.dawnsci.plotting.api.trace.LineTracePreferences
Class to retrieve and store line trace preferences
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLineTracePreferences(org.eclipse.jface.preference.IPreferenceStore store, org.eclipse.ui.XMLMemento memento) -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyPreferences(ILineTrace trace) Apply preferences to given line tracevoidcopyPreferences(org.eclipse.ui.IMemento destination) Copy preferences to destinationbooleangetBoolean(String key) intgetInteger(String key) <T extends Enum<T>>
intgetOrdinal(Class<T> clazz) <T extends Enum<T>>
intgetOrdinal(Class<T> clazz, String key) voidresetBoolean(String key) Reset key to global valuevoidresetInteger(String key) Reset key to global valuevoidReset preferencesvoidresetString(String key) Reset key to global valuevoidSet preferences with given value<T extends Enum<T>>
voidset(T eValue) Set preferences with enumeration value under its class name
-
Field Details
-
ERROR_BAR_ON
- See Also:
-
X_ERROR_BAR_TYPE
- See Also:
-
Y_ERROR_BAR_TYPE
- See Also:
-
AREA_ALPHA
- See Also:
-
POINT_SIZE
- See Also:
-
LINE_WIDTH
- See Also:
-
-
Constructor Details
-
LineTracePreferences
public LineTracePreferences(org.eclipse.jface.preference.IPreferenceStore store, org.eclipse.ui.XMLMemento memento) - Parameters:
store-memento-
-
-
Method Details
-
getOrdinal
- Parameters:
clazz-- Returns:
- ordinal of Enum stored under its class name
-
getOrdinal
- Parameters:
clazz-key-- Returns:
- ordinal of Enum stored under given key
-
getString
- Parameters:
key-- Returns:
- string stored under given key
-
getInteger
- Parameters:
key-- Returns:
- integer stored under given key
-
getBoolean
- Parameters:
key-- Returns:
- boolean stored under given key
-
set
Set preferences with enumeration value under its class name- Parameters:
eValue-
-
set
Set preferences with given value- Parameters:
key-value-
-
applyPreferences
Apply preferences to given line trace- Parameters:
trace-
-
resetString
Reset key to global value- Parameters:
key-
-
resetInteger
Reset key to global value- Parameters:
key-
-
resetBoolean
Reset key to global value- Parameters:
key-
-
resetPreferences
public void resetPreferences()Reset preferences -
copyPreferences
public void copyPreferences(org.eclipse.ui.IMemento destination) Copy preferences to destination- Parameters:
destination-
-