1
|
/**
|
2
|
* Copyright (C) 2018 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
package eu.etaxonomy.taxeditor.editor.descriptiveDataSet.matrix;
|
10
|
|
11
|
import org.eclipse.nebula.widgets.nattable.config.AbstractRegistryConfiguration;
|
12
|
import org.eclipse.nebula.widgets.nattable.config.CellConfigAttributes;
|
13
|
import org.eclipse.nebula.widgets.nattable.config.IConfigRegistry;
|
14
|
import org.eclipse.nebula.widgets.nattable.style.CellStyleAttributes;
|
15
|
import org.eclipse.nebula.widgets.nattable.style.DisplayMode;
|
16
|
import org.eclipse.nebula.widgets.nattable.style.Style;
|
17
|
import org.eclipse.nebula.widgets.nattable.util.GUIHelper;
|
18
|
|
19
|
/**
|
20
|
* @author pplitzner
|
21
|
* @since Jul 6, 2018
|
22
|
*
|
23
|
*/
|
24
|
public final class CharacterMatrixLabelStyleConfiguration extends AbstractRegistryConfiguration {
|
25
|
@Override
|
26
|
public void configureRegistry(IConfigRegistry configRegistry) {
|
27
|
Style cellStyle = new Style();
|
28
|
cellStyle.setAttributeValue(
|
29
|
CellStyleAttributes.BACKGROUND_COLOR,
|
30
|
GUIHelper.COLOR_WIDGET_BACKGROUND);
|
31
|
configRegistry.registerConfigAttribute(
|
32
|
CellConfigAttributes.CELL_STYLE,
|
33
|
cellStyle,
|
34
|
DisplayMode.NORMAL,
|
35
|
CharacterMatrix.LABEL_TAXON_ROW);
|
36
|
|
37
|
}
|
38
|
}
|