org.eclipse.graphiti.tb
Class SelectionInfoImpl

java.lang.Object
  extended by org.eclipse.graphiti.tb.SelectionInfoImpl
All Implemented Interfaces:
ISelectionInfo

public class SelectionInfoImpl
extends java.lang.Object
implements ISelectionInfo

The Class SelectionInfoImpl.


Field Summary
private  IColorConstant color
           
private  IColorConstant handleBackgroundColor
           
private  IColorConstant handleForegroundColor
           
private  IColorConstant hoverColor
           
private  IColorConstant hoverColorParentSelected
           
private  LineStyle lineStyle
           
 
Constructor Summary
SelectionInfoImpl()
          Creates a new SelectionInfoImpl.
SelectionInfoImpl(IColorConstant color, IColorConstant handleForegroundColor, IColorConstant handleBackgroundColor, IColorConstant hoverColor, LineStyle lineStyle)
          Creates a new SelectionInfoImpl.
SelectionInfoImpl(IColorConstant color, IColorConstant handleForegroundColor, IColorConstant handleBackgroundColor, LineStyle lineStyle)
          Creates a new SelectionInfoImpl.
 
Method Summary
 IColorConstant getColor()
          Gets the color.
 IColorConstant getHandleBackgroundColor()
          Gets the handle background color.
 IColorConstant getHandleForegroundColor()
          Gets the handle foreground color.
 IColorConstant getHoverColor()
          Gets the hover color.
 IColorConstant getHoverColorParentSelected()
          Gets the hover color for a shape whose parent is selected.
 LineStyle getLineStyle()
          Gets the line style.
 void setColor(IColorConstant color)
          Set the color of the selection.
 void setHandleBackgroundColor(IColorConstant handleBackgroundColor)
          Set the background color of the selection handle.
 void setHandleForegroundColor(IColorConstant handleForegroundColor)
          Set the foreground color of the selection handle.
 void setHoverColor(IColorConstant hoverColor)
          Sets the hover color.
 void setHoverColorParentSelected(IColorConstant hoverColor)
          Sets the hover color for shapes whose parent is selected.
 void setLineStyle(IColorConstant color)
          Set hover color.
 void setLineStyle(LineStyle lineStyle)
          Set the line style of the selection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

color

private IColorConstant color

handleForegroundColor

private IColorConstant handleForegroundColor

handleBackgroundColor

private IColorConstant handleBackgroundColor

hoverColor

private IColorConstant hoverColor

lineStyle

private LineStyle lineStyle

hoverColorParentSelected

private IColorConstant hoverColorParentSelected
Constructor Detail

SelectionInfoImpl

public SelectionInfoImpl(IColorConstant color,
                         IColorConstant handleForegroundColor,
                         IColorConstant handleBackgroundColor,
                         LineStyle lineStyle)
Creates a new SelectionInfoImpl.

Parameters:
color - the color
handleForegroundColor - the handle foreground color
handleBackgroundColor - the handle background color
lineStyle - the line style

SelectionInfoImpl

public SelectionInfoImpl(IColorConstant color,
                         IColorConstant handleForegroundColor,
                         IColorConstant handleBackgroundColor,
                         IColorConstant hoverColor,
                         LineStyle lineStyle)
Creates a new SelectionInfoImpl.

Parameters:
color - the color
handleForegroundColor - the handle foreground color
handleBackgroundColor - the handle background color
lineStyle - the line style

SelectionInfoImpl

public SelectionInfoImpl()
Creates a new SelectionInfoImpl.

Method Detail

getColor

public IColorConstant getColor()
Description copied from interface: ISelectionInfo
Gets the color.

Specified by:
getColor in interface ISelectionInfo
Returns:
the color of the selection border

getHandleForegroundColor

public IColorConstant getHandleForegroundColor()
Description copied from interface: ISelectionInfo
Gets the handle foreground color.

Specified by:
getHandleForegroundColor in interface ISelectionInfo
Returns:
the foreground color of the selection handle

setHandleForegroundColor

public void setHandleForegroundColor(IColorConstant handleForegroundColor)
Description copied from interface: ISelectionInfo
Set the foreground color of the selection handle.

Specified by:
setHandleForegroundColor in interface ISelectionInfo
Parameters:
handleForegroundColor - the color

getHandleBackgroundColor

public IColorConstant getHandleBackgroundColor()
Description copied from interface: ISelectionInfo
Gets the handle background color.

Specified by:
getHandleBackgroundColor in interface ISelectionInfo
Returns:
the background color of the selection handle

setHandleBackgroundColor

public void setHandleBackgroundColor(IColorConstant handleBackgroundColor)
Description copied from interface: ISelectionInfo
Set the background color of the selection handle.

Specified by:
setHandleBackgroundColor in interface ISelectionInfo
Parameters:
handleBackgroundColor - the color

getLineStyle

public LineStyle getLineStyle()
Description copied from interface: ISelectionInfo
Gets the line style.

Specified by:
getLineStyle in interface ISelectionInfo
Returns:
the line style of the selection

setLineStyle

public void setLineStyle(LineStyle lineStyle)
Description copied from interface: ISelectionInfo
Set the line style of the selection.

Specified by:
setLineStyle in interface ISelectionInfo
Parameters:
lineStyle - the line style

setColor

public void setColor(IColorConstant color)
Description copied from interface: ISelectionInfo
Set the color of the selection.

Specified by:
setColor in interface ISelectionInfo
Parameters:
color - the color

getHoverColor

public IColorConstant getHoverColor()
Description copied from interface: ISelectionInfo
Gets the hover color.

Specified by:
getHoverColor in interface ISelectionInfo

setLineStyle

public void setLineStyle(IColorConstant color)
Description copied from interface: ISelectionInfo
Set hover color.

Specified by:
setLineStyle in interface ISelectionInfo
Parameters:
color - the on hover color

setHoverColor

public void setHoverColor(IColorConstant hoverColor)
Description copied from interface: ISelectionInfo
Sets the hover color.

Specified by:
setHoverColor in interface ISelectionInfo

getHoverColorParentSelected

public IColorConstant getHoverColorParentSelected()
Description copied from interface: ISelectionInfo
Gets the hover color for a shape whose parent is selected.

Specified by:
getHoverColorParentSelected in interface ISelectionInfo

setHoverColorParentSelected

public void setHoverColorParentSelected(IColorConstant hoverColor)
Description copied from interface: ISelectionInfo
Sets the hover color for shapes whose parent is selected.

Specified by:
setHoverColorParentSelected in interface ISelectionInfo


Copyright (c) SAP AG 2005, 2010.