blob: 63d3a1467a8cba17a2526796e666533a3d1bd0ed [file] [log] [blame]
/*********************************************************************
* 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
* mwenz - Bug 325084 - Provide documentation for Patterns
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.graphiti.pattern.config;
import org.eclipse.graphiti.util.IColorConstant;
/**
* The Interface IColorConfiguration.
*
* @experimental This API is in an experimental state and should be used by
* clients, as it not final and can be removed or changed without
* prior notice!
*
* @noimplement This interface is not intended to be implemented by clients.
* @noextend This interface is not intended to be extended by clients.
*/
public interface IColorConfiguration extends IPatternConfiguration {
/**
* Gets the background color.
*
* @return the background color
*/
IColorConstant getBackgroundColor();
/**
* Gets the foreground color.
*
* @return the foreground color
*/
IColorConstant getForegroundColor();
/**
* Gets the text color.
*
* @return the text color
*/
IColorConstant getTextColor();
/**
* Sets the background color.
*
* @param color
* the new background color
*/
void setBackgroundColor(IColorConstant color);
/**
* Sets the foreground color.
*
* @param color
* the new foreground color
*/
void setForegroundColor(IColorConstant color);
/**
* Sets the text color.
*
* @param color
* the new text color
*/
void setTextColor(IColorConstant color);
/**
* Gets the transparency.
*
* @return the transparency
*/
double getTransparency();
/**
* Sets the transparency.
*
* @param transparency
* the new transparency
*/
void setTransparency(double transparency);
}