| /********************************************************************* |
| * 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: |
| * SAP SE - initial API, implementation and documentation |
| * |
| * SPDX-License-Identifier: EPL-2.0 |
| **********************************************************************/ |
| package org.eclipse.graphiti.tb; |
| |
| import org.eclipse.graphiti.mm.pictograms.PictogramElement; |
| |
| /** |
| * The Interface IDecorator. Decorators are a means to modify the visualization |
| * of shapes in a diagram without modifying the dirty state of the editor. This |
| * is done by the Graphiti framework by simply applying the decorators to a |
| * shape after it has been drawn on the screen as defined in the pictograms |
| * model. |
| * <p> |
| * The list of decorators that shall be applied to a {@link PictogramElement} is |
| * queried from the |
| * {@link IToolBehaviorProvider#getDecorators(PictogramElement)} method when a |
| * shape is drawn or updated on the diagram by the Graphiti framework. |
| * |
| * @noimplement This interface is not intended to be implemented by clients. |
| * @noextend This interface is not intended to be extended by clients. |
| */ |
| public interface IDecorator { |
| |
| /** |
| * Gets the message to be shown as a tooltip for the decorator. This can |
| * e.g. be an error message stating why the shape is marked. |
| * |
| * @return the message |
| */ |
| String getMessage(); |
| |
| /** |
| * Sets the message to be shown as a tooltip for the decorator. This can |
| * e.g. be an error message stating why the shape is marked. |
| * |
| * @param message |
| * the new message |
| */ |
| void setMessage(String message); |
| } |