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%2FLabelDecoratorFactory.java;h=58cabcea816d60aa4ac80df8630cccdc3e21eabf;hp=3bb570650f01fc0e70096b6749322e4d1d46c704;hb=0ae2b770234dfc3cbb18bd38f324125cf0faca07;hpb=969bd23cab98a79ca9101af33334000879fb60c5 diff --git a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecoratorFactory.java b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecoratorFactory.java index 3bb570650..58cabcea8 100644 --- a/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecoratorFactory.java +++ b/bundles/org.simantics.browsing.ui/src/org/simantics/browsing/ui/content/LabelDecoratorFactory.java @@ -1,37 +1,37 @@ -/******************************************************************************* - * 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; - -import org.simantics.browsing.ui.NodeContext; -import org.simantics.browsing.ui.PrimitiveQueryUpdater; -import org.simantics.browsing.ui.BuiltinKeys.LabelDecoratorKey; - - -/** - * An interface for constructing decorators for controlling the aesthetic - * properties of an UI item, including the label text, font, background color - * and foreground color. - * - * @author Tuukka Lehtonen - */ -public interface LabelDecoratorFactory { - - /** - * @param manager the manager for performing more queries to decide how to - * decorate the label of the specified input - * @param context the input node context to evaluate for decoration - * @return null if no decoration is desired for the specified - * input - */ - LabelDecorator create(PrimitiveQueryUpdater manager, NodeContext context, LabelDecoratorKey key); - -} +/******************************************************************************* + * 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; + +import org.simantics.browsing.ui.NodeContext; +import org.simantics.browsing.ui.PrimitiveQueryUpdater; +import org.simantics.browsing.ui.BuiltinKeys.LabelDecoratorKey; + + +/** + * An interface for constructing decorators for controlling the aesthetic + * properties of an UI item, including the label text, font, background color + * and foreground color. + * + * @author Tuukka Lehtonen + */ +public interface LabelDecoratorFactory { + + /** + * @param manager the manager for performing more queries to decide how to + * decorate the label of the specified input + * @param context the input node context to evaluate for decoration + * @return null if no decoration is desired for the specified + * input + */ + LabelDecorator create(PrimitiveQueryUpdater manager, NodeContext context, LabelDecoratorKey key); + +}