Classes | |
enum | ColorComponentType |
Public Member Functions | |
PortableColor | foregroundFor (RenderingStatus status, ColorComponentType compType) |
PortableColor | backgroundFor (RenderingStatus status, ColorComponentType compType) |
Represents the color of a control, both background and foreground. The color can change depending on the current state and component type, for example when it recently updated or if an error occurred, the full list of possibilities is in the enum.
enum com::thecoderscorner::embedcontrol::core::controlmgr::color::ConditionalColoring::ColorComponentType |
Indicates the current drawing mode of this conditional color
Enumerator | BUTTON | CUSTOM | DIALOG | ERROR | HIGHLIGHT | PENDING | TEXT_FIELD |
---|
PortableColor com.thecoderscorner.embedcontrol.core.controlmgr.color.ConditionalColoring.backgroundFor | ( | RenderingStatus | status, |
ColorComponentType | compType | ||
) |
Gets the background color associated with the current state or compType.
status | the current rendering status |
compType | the type of color to select |
Implemented in com.thecoderscorner.embedcontrol.core.controlmgr.color.NullConditionalColoring.
PortableColor com.thecoderscorner.embedcontrol.core.controlmgr.color.ConditionalColoring.foregroundFor | ( | RenderingStatus | status, |
ColorComponentType | compType | ||
) |
Gets the foreground color associated with the current state or compType.
status | the current rendering status |
compType | the type of color to select |
Implemented in com.thecoderscorner.embedcontrol.core.controlmgr.color.NullConditionalColoring.