X-Git-Url: https://gerrit.simantics.org/r/gitweb?p=simantics%2Fplatform.git;a=blobdiff_plain;f=bundles%2Forg.simantics.browsing.ui%2Fsrc%2Forg%2Fsimantics%2Fbrowsing%2Fui%2Fcontent%2FLabelDecorator.java;h=53e2f0c574aa54b7500e1ef2a305a43ff091ee4e;hp=0afcf95b839b4278b3806187d661d4e1464623e2;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=24e2b34260f219f0d1644ca7a138894980e25b14
diff --git a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecorator.java b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecorator.java
index 0afcf95b8..53e2f0c57 100644
--- a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecorator.java
+++ b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecorator.java
@@ -1,72 +1,72 @@
-/*******************************************************************************
- * Copyright (c) 2007, 2010 Association for Decentralized Information Management
- * in Industry THTH ry.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * VTT Technical Research Centre of Finland - initial API and implementation
- *******************************************************************************/
-package org.simantics.browsing.ui.content;
-
-/**
- * An interface for decorating aesthetic properties of an UI item, including the
- * label text, font, background color and foreground color.
- *
- * @author Tuukka Lehtonen
- */
-public interface LabelDecorator {
-
- /**
- * @param label the label before decoration
- * @param column the name of the UI column which the label is for
- * @param itemIndex the index of this label within its parenting
- * INodeContext
- * @return the decorated label or null
to denote
- * no decoration
- */
- String decorateLabel(String label, String column, int itemIndex);
-
- Color decorateForeground(Color color, String column, int itemIndex);
-
- Color decorateBackground(Color color, String column, int itemIndex);
-
- /**
- * @param font null
if no default font is set ??
- * @param column the name of the UI column which the label is for
- * @param itemIndex the index of this label within its parenting
- * INodeContext
- * @return the decorated font instance or null
to indicate
- * "no decoration"
- */
- Font decorateFont(Font font, String column, int itemIndex);
-
-
- /**
- * Stub for simpler implementation of a LabelDecorator.
- */
- public static class Stub implements LabelDecorator {
- @Override
- public Color decorateBackground(Color color, String column, int itemIndex) {
- return null;
- }
-
- @Override
- public Font decorateFont(Font font, String column, int itemIndex) {
- return null;
- }
-
- @Override
- public Color decorateForeground(Color color, String column, int itemIndex) {
- return null;
- }
-
- @Override
- public String decorateLabel(String label, String column, int itemIndex) {
- return null;
- }
- }
-
-}
+/*******************************************************************************
+ * Copyright (c) 2007, 2010 Association for Decentralized Information Management
+ * in Industry THTH ry.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * VTT Technical Research Centre of Finland - initial API and implementation
+ *******************************************************************************/
+package org.simantics.browsing.ui.content;
+
+/**
+ * An interface for decorating aesthetic properties of an UI item, including the
+ * label text, font, background color and foreground color.
+ *
+ * @author Tuukka Lehtonen
+ */
+public interface LabelDecorator {
+
+ /**
+ * @param label the label before decoration
+ * @param column the name of the UI column which the label is for
+ * @param itemIndex the index of this label within its parenting
+ * INodeContext
+ * @return the decorated label or null
to denote
+ * no decoration
+ */
+ String decorateLabel(String label, String column, int itemIndex);
+
+ Color decorateForeground(Color color, String column, int itemIndex);
+
+ Color decorateBackground(Color color, String column, int itemIndex);
+
+ /**
+ * @param font null
if no default font is set ??
+ * @param column the name of the UI column which the label is for
+ * @param itemIndex the index of this label within its parenting
+ * INodeContext
+ * @return the decorated font instance or null
to indicate
+ * "no decoration"
+ */
+ Font decorateFont(Font font, String column, int itemIndex);
+
+
+ /**
+ * Stub for simpler implementation of a LabelDecorator.
+ */
+ public static class Stub implements LabelDecorator {
+ @Override
+ public Color decorateBackground(Color color, String column, int itemIndex) {
+ return null;
+ }
+
+ @Override
+ public Font decorateFont(Font font, String column, int itemIndex) {
+ return null;
+ }
+
+ @Override
+ public Color decorateForeground(Color color, String column, int itemIndex) {
+ return null;
+ }
+
+ @Override
+ public String decorateLabel(String label, String column, int itemIndex) {
+ return null;
+ }
+ }
+
+}