]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.browsing.ui.model/src/org/simantics/browsing/ui/model/labeldecorators/AbstractLabelDecorator.java
Fixed all line endings of the repository
[simantics/platform.git] / bundles / org.simantics.browsing.ui.model / src / org / simantics / browsing / ui / model / labeldecorators / AbstractLabelDecorator.java
1 /*******************************************************************************
2  * Copyright (c) 2010, 2011 Association for Decentralized Information Management in
3  * Industry THTH ry.
4  * All rights reserved. This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License v1.0
6  * which accompanies this distribution, and is available at
7  * http://www.eclipse.org/legal/epl-v10.html
8  *
9  * Contributors:
10  *     VTT Technical Research Centre of Finland - initial API and implementation
11  *******************************************************************************/
12 package org.simantics.browsing.ui.model.labeldecorators;
13
14 import org.simantics.browsing.ui.content.LabelDecorator;
15
16 public abstract class AbstractLabelDecorator implements LabelDecorator {
17
18     @Override
19     public String decorateLabel(String label, String column, int itemIndex) {
20         return label;
21     }
22
23     @Override
24     public <Color> Color decorateForeground(Color color, String column,
25             int itemIndex) {
26         return color;
27     }
28
29     @Override
30     public <Color> Color decorateBackground(Color color, String column,
31             int itemIndex) {
32         return color;
33     }
34
35     @Override
36     public <Font> Font decorateFont(Font font, String column, int itemIndex) {
37         return font;
38     }
39
40 }