blob: fc8d90a71e6b8c12a7069eb68c243561748657f0 [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
* mgorning - Bug 391523 - Revise getSelectionInfo...() in IToolBehaviorProvider
*
* SPDX-License-Identifier: EPL-2.0
**********************************************************************/
package org.eclipse.graphiti.tb;
import org.eclipse.graphiti.util.IColorConstant;
/**
* The Interface IShapeSelectionInfo.
*
* @noimplement This interface is not intended to be implemented by clients, use
* {@link ShapeSelectionInfoImpl} instead
* @noextend This interface is not intended to be extended by clients.
* @since 0.10
*/
public interface IShapeSelectionInfo extends ISelectionInfo {
/**
* Gets the primary selection background color. Only used if no Rendering
* style is set.
*
* @return the primary selection background color
*/
IColorConstant getPrimarySelectionBackgroundColor();
/**
* Gets the secondary selection background color. Only used if no Rendering
* style is set.
*
* @return the secondary selection background color
*/
IColorConstant getSecondarySelectionBackgroundColor();
/**
* Sets color for primary selection background. Only used if no Rendering
* style is set.
*
* @param color
* the color
*/
void setPrimarySelectionBackgroundColor(IColorConstant color);
/**
* Sets color for secondary selection background. Only used if no Rendering
* style is set.
*
* @param color
* the color
*/
void setSecondarySelectionBackgroundColor(IColorConstant color);
/**
* Gets the primary selection foreground color for the selection handle.
*
* @return the foreground color
*/
IColorConstant getPrimarySelectionHandleForegroundColor();
/**
* Gets the primary selection background color for the selection handle.
*
* @return the background color
*/
IColorConstant getPrimarySelectionHandleBackgroundColor();
/**
* Gets the secondary selection foreground color for the selection handle.
*
* @return the foreground color
*/
IColorConstant getSecondarySelectionHandleForegroundColor();
/**
* Gets the secondary selection background color for the selection handle.
*
* @return the background color
*/
IColorConstant getSecondarySelectionHandleBackgroundColor();
/**
* Sets the primary selection foreground color for the selection handle.
*
* @param color
* the color
*/
void setPrimarySelectionHandleForegroundColor(IColorConstant color);
/**
* Sets the primary selection background color for the selection handle.
*
* @param color
* the color
*/
void setPrimarySelectionHandleBackgroundColor(IColorConstant color);
/**
* Sets the secondary selection foreground color for the selection handle.
*
* @param color
* the color
*/
void setSecondarySelectionHandleForegroundColor(IColorConstant color);
/**
* Sets the secondary selection background color for the selection handle.
*
* @param color
* the color
*/
void setSecondarySelectionHandleBackgroundColor(IColorConstant color);
}