| /********************************************************************* |
| * Copyright (c) 2005, 2019 SAP SE |
| * |
| * This program and the accompanying materials are made |
| * available under the terms of the Eclipse Public License 2.0 |
| * which is available at https://www.eclipse.org/legal/epl-2.0/ |
| * |
| * Contributors: |
| * mwenz - Bug 358255 - initial API, implementation and documentation |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| package org.eclipse.graphiti.tb; |
| |
| import org.eclipse.graphiti.util.IColorConstant; |
| |
| /** |
| * Color decorators can be used to modify the visualization of a shape without |
| * modifying the dirty state of the displaying editor, see {@link IDecorator}. |
| * Note that modifying background and foreground colors as it is possible with |
| * this decorator will have no effect if the shape is invisible, the complete |
| * shape is hidden underneath other (possibly contained) shapes or the shape |
| * uses gradients. |
| * |
| * @noimplement This interface is not intended to be implemented by clients. |
| * @noextend This interface is not intended to be extended by clients. |
| * @since 0.9 |
| */ |
| public interface IColorDecorator extends IDecorator { |
| |
| /** |
| * Returns the color that will be used for painting the foreground of the |
| * shape to decorate. By default (when returning <code>null</code>) the |
| * original foreground color of the shape is kept. |
| * |
| * @return a {@link IColorConstant} defining the color |
| */ |
| public IColorConstant getForegroundColor(); |
| |
| /** |
| * Returns the color that will be used for painting the background of the |
| * shape to decorate. By default (when returning <code>null</code>) the |
| * original background color of the shape is kept. |
| * |
| * @return a {@link IColorConstant} defining the color |
| */ |
| public IColorConstant getBackgroundColor(); |
| } |