Revision e8d37b23
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/CharacterMatrixLabelStyleConfiguration.java | ||
---|---|---|
24 | 24 |
public final class CharacterMatrixLabelStyleConfiguration extends AbstractRegistryConfiguration { |
25 | 25 |
@Override |
26 | 26 |
public void configureRegistry(IConfigRegistry configRegistry) { |
27 |
Style cellStyle = new Style();
|
|
28 |
cellStyle.setAttributeValue(
|
|
27 |
Style taxonRowStyle = new Style();
|
|
28 |
taxonRowStyle.setAttributeValue(
|
|
29 | 29 |
CellStyleAttributes.BACKGROUND_COLOR, |
30 | 30 |
GUIHelper.COLOR_WIDGET_BACKGROUND); |
31 | 31 |
configRegistry.registerConfigAttribute( |
32 | 32 |
CellConfigAttributes.CELL_STYLE, |
33 |
cellStyle,
|
|
33 |
taxonRowStyle,
|
|
34 | 34 |
DisplayMode.NORMAL, |
35 | 35 |
CharacterMatrix.LABEL_TAXON_ROW); |
36 | 36 |
|
37 |
Style taxonAggregationStyle = new Style(); |
|
38 |
taxonAggregationStyle.setAttributeValue( |
|
39 |
CellStyleAttributes.BACKGROUND_COLOR, |
|
40 |
GUIHelper.getColor(255, 255, 153)); |
|
41 |
configRegistry.registerConfigAttribute( |
|
42 |
CellConfigAttributes.CELL_STYLE, |
|
43 |
taxonAggregationStyle, |
|
44 |
DisplayMode.NORMAL, |
|
45 |
CharacterMatrix.LABEL_TAXON_AGGREGATED_DESCRIPTION); |
|
46 |
|
|
37 | 47 |
} |
38 | 48 |
} |
Also available in: Unified diff
ref #7674 Change bgColor of aggregated taxon description