Package org.eclipse.graphiti.tb
Class SelectionInfoImpl
java.lang.Object
org.eclipse.graphiti.tb.SelectionInfoImpl
- All Implemented Interfaces:
ISelectionInfo
- Direct Known Subclasses:
ConnectionSelectionInfoImpl
,ShapeSelectionInfoImpl
The Class SelectionInfoImpl.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetColor()
Gets the color.Gets the hover color.Gets the hover color for a shape whose parent is selected.Gets the line style.void
setColor
(IColorConstant color) Set the color of the selection.void
setHoverColor
(IColorConstant hoverColor) Sets the hover color.void
setHoverColorParentSelected
(IColorConstant hoverColor) Sets the hover color for shapes whose parent is selected.void
setLineStyle
(LineStyle lineStyle) Set the line style of the selection.
-
Constructor Details
-
SelectionInfoImpl
public SelectionInfoImpl()Creates a newSelectionInfoImpl
.
-
-
Method Details
-
getColor
Description copied from interface:ISelectionInfo
Gets the color.- Specified by:
getColor
in interfaceISelectionInfo
- Returns:
- the color of the selection border
-
getLineStyle
Description copied from interface:ISelectionInfo
Gets the line style.- Specified by:
getLineStyle
in interfaceISelectionInfo
- Returns:
- the line style of the selection
-
setLineStyle
Description copied from interface:ISelectionInfo
Set the line style of the selection.- Specified by:
setLineStyle
in interfaceISelectionInfo
- Parameters:
lineStyle
- the line style
-
setColor
Description copied from interface:ISelectionInfo
Set the color of the selection.- Specified by:
setColor
in interfaceISelectionInfo
- Parameters:
color
- the color
-
getHoverColor
Description copied from interface:ISelectionInfo
Gets the hover color.- Specified by:
getHoverColor
in interfaceISelectionInfo
- Returns:
- the on hover color
-
setHoverColor
Description copied from interface:ISelectionInfo
Sets the hover color.- Specified by:
setHoverColor
in interfaceISelectionInfo
- Parameters:
hoverColor
- the color
-
getHoverColorParentSelected
Description copied from interface:ISelectionInfo
Gets the hover color for a shape whose parent is selected.- Specified by:
getHoverColorParentSelected
in interfaceISelectionInfo
- Returns:
- the hover color
-
setHoverColorParentSelected
Description copied from interface:ISelectionInfo
Sets the hover color for shapes whose parent is selected.- Specified by:
setHoverColorParentSelected
in interfaceISelectionInfo
- Parameters:
hoverColor
- the color
-