C# Class ComponentFactory.Krypton.Navigator.ButtonSpecNavRemap

Redirect requests for image/text colors to remap.
Inheritance: ComponentFactory.Krypton.Toolkit.PaletteRedirect
ファイルを表示 Open project: ComponentFactory/Krypton

Public Methods

Method Description
ButtonSpecNavRemap ( IPalette target, ButtonSpec buttonSpec, ButtonSpecRemapTarget remapTarget ) : System

Initialize a new instance of the ButtonSpecNavRemapDisabled class.

GetContentImageColorMap ( PaletteContentStyle style, PaletteState state ) : Color

Gets the image color to remap into another color.

GetContentImageColorTo ( PaletteContentStyle style, PaletteState state ) : Color

Gets the color to use in place of the image map color.

GetContentLongTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color

Gets the first back color for the long text.

GetContentShortTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color

Gets the first back color for the short text.

Private Methods

Method Description
GetRemapTarget ( PaletteContentStyle style, PaletteState state ) : Color
OverrideImageColor ( PaletteState state ) : Color
OverrideTextColor ( PaletteState state ) : bool

Method Details

ButtonSpecNavRemap() public method

Initialize a new instance of the ButtonSpecNavRemapDisabled class.
public ButtonSpecNavRemap ( IPalette target, ButtonSpec buttonSpec, ButtonSpecRemapTarget remapTarget ) : System
target IPalette Initial palette target for redirection.
buttonSpec ComponentFactory.Krypton.Toolkit.ButtonSpec Reference to button specification.
remapTarget ButtonSpecRemapTarget Target for remapping the color onto.
return System

GetContentImageColorMap() public method

Gets the image color to remap into another color.
public GetContentImageColorMap ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color

GetContentImageColorTo() public method

Gets the color to use in place of the image map color.
public GetContentImageColorTo ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color

GetContentLongTextColor1() public method

Gets the first back color for the long text.
public GetContentLongTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color

GetContentShortTextColor1() public method

Gets the first back color for the short text.
public GetContentShortTextColor1 ( PaletteContentStyle style, PaletteState state ) : Color
style PaletteContentStyle Content style.
state PaletteState Palette value should be applicable to this state.
return Color