C# Class Longkong.ColorPicker.Controls.ColorSpace

Abstract base class for the color spaces used in the application.
Inheritance: System.Windows.Forms.UserControl
Show file Open project: Longkong/Pojjaman Class Usage Examples

Private Properties

Property Type Description
GetColor Color
ResetComponents void
SetDefaultSelection void

Protected Methods

Method Description
ChangeCurrentlySelectedComponent ( ColorSpaceComponent component ) : void

Changes the currently selected color space component.

ColorSpace ( ) : System

Constructor.

ComponentSelected ( ColorSpaceComponent sender, EventArgs e ) : void

Handles the ComponentSelected event that the ColorSpaceComponent raises.

ComponentTextKeyUp ( ColorSpaceComponent sender, EventArgs e ) : void

Handles the ComponentTextKeyUp event that the ColorSpaceComponent raises.

OnComponentValueChanged ( EventArgs e ) : void

Raises the ComponentValueChanged event.

OnSelectedComponentChanged ( EventArgs e ) : void

Raises the SelectedComponentChanged event.

UpdateValues ( IColorSpaceStructure csStructure ) : void

Updates the color space coordinate values.

Private Methods

Method Description
GetColor ( ) : Color

Returns a Color object representing the color that the color space's coordinates represent.

ResetComponents ( ) : void

Sets the selected property of the color space components to false.

SetDefaultSelection ( ) : void

Sets the default selected component.

Method Details

ChangeCurrentlySelectedComponent() protected method

Changes the currently selected color space component.
protected ChangeCurrentlySelectedComponent ( ColorSpaceComponent component ) : void
component ColorSpaceComponent A ColorSpaceComponent representing the /// component that is to be set as the selected component.
return void

ColorSpace() protected method

Constructor.
protected ColorSpace ( ) : System
return System

ComponentSelected() protected method

Handles the ComponentSelected event that the ColorSpaceComponent raises.
protected ComponentSelected ( ColorSpaceComponent sender, EventArgs e ) : void
sender ColorSpaceComponent The ColorSpaceComponent that raised the event.
e System.EventArgs An EventArgs containing the event data.
return void

ComponentTextKeyUp() protected method

Handles the ComponentTextKeyUp event that the ColorSpaceComponent raises.
protected ComponentTextKeyUp ( ColorSpaceComponent sender, EventArgs e ) : void
sender ColorSpaceComponent The ColorSpaceComponent that raised the event.
e System.EventArgs An EventArgs containing the event data.
return void

OnComponentValueChanged() protected method

Raises the ComponentValueChanged event.
protected OnComponentValueChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing event data.
return void

OnSelectedComponentChanged() protected method

Raises the SelectedComponentChanged event.
protected OnSelectedComponentChanged ( EventArgs e ) : void
e System.EventArgs An EventArgs containing event data.
return void

UpdateValues() protected abstract method

Updates the color space coordinate values.
protected abstract UpdateValues ( IColorSpaceStructure csStructure ) : void
csStructure IColorSpaceStructure A IColorSpaceStructure object containing /// the coordinate values that the color space is to be updated with.
return void