Package org.eclipse.graphiti.tb
Class SelectionInfoImpl
- java.lang.Object
-
- org.eclipse.graphiti.tb.SelectionInfoImpl
-
- All Implemented Interfaces:
ISelectionInfo
- Direct Known Subclasses:
ConnectionSelectionInfoImpl,ShapeSelectionInfoImpl
public abstract class SelectionInfoImpl extends java.lang.Object implements ISelectionInfo
The Class SelectionInfoImpl.
-
-
Constructor Summary
Constructors Constructor Description SelectionInfoImpl()Creates a newSelectionInfoImpl.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IColorConstantgetColor()Gets the color.IColorConstantgetHoverColor()Gets the hover color.IColorConstantgetHoverColorParentSelected()Gets the hover color for a shape whose parent is selected.LineStylegetLineStyle()Gets the line style.voidsetColor(IColorConstant color)Set the color of the selection.voidsetHoverColor(IColorConstant hoverColor)Sets the hover color.voidsetHoverColorParentSelected(IColorConstant hoverColor)Sets the hover color for shapes whose parent is selected.voidsetLineStyle(LineStyle lineStyle)Set the line style of the selection.
-
-
-
Constructor Detail
-
SelectionInfoImpl
public SelectionInfoImpl()
Creates a newSelectionInfoImpl.
-
-
Method Detail
-
getColor
public IColorConstant getColor()
Description copied from interface:ISelectionInfoGets the color.- Specified by:
getColorin interfaceISelectionInfo- Returns:
- the color of the selection border
-
getLineStyle
public LineStyle getLineStyle()
Description copied from interface:ISelectionInfoGets the line style.- Specified by:
getLineStylein interfaceISelectionInfo- Returns:
- the line style of the selection
-
setLineStyle
public void setLineStyle(LineStyle lineStyle)
Description copied from interface:ISelectionInfoSet the line style of the selection.- Specified by:
setLineStylein interfaceISelectionInfo- Parameters:
lineStyle- the line style
-
setColor
public void setColor(IColorConstant color)
Description copied from interface:ISelectionInfoSet the color of the selection.- Specified by:
setColorin interfaceISelectionInfo- Parameters:
color- the color
-
getHoverColor
public IColorConstant getHoverColor()
Description copied from interface:ISelectionInfoGets the hover color.- Specified by:
getHoverColorin interfaceISelectionInfo- Returns:
- the on hover color
-
setHoverColor
public void setHoverColor(IColorConstant hoverColor)
Description copied from interface:ISelectionInfoSets the hover color.- Specified by:
setHoverColorin interfaceISelectionInfo- Parameters:
hoverColor- the color
-
getHoverColorParentSelected
public IColorConstant getHoverColorParentSelected()
Description copied from interface:ISelectionInfoGets the hover color for a shape whose parent is selected.- Specified by:
getHoverColorParentSelectedin interfaceISelectionInfo- Returns:
- the hover color
-
setHoverColorParentSelected
public void setHoverColorParentSelected(IColorConstant hoverColor)
Description copied from interface:ISelectionInfoSets the hover color for shapes whose parent is selected.- Specified by:
setHoverColorParentSelectedin interfaceISelectionInfo- Parameters:
hoverColor- the color
-
-