Class GradientFormatter
Formats text with different color intensity depending on the score of the term.
Inheritance
System.Object
GradientFormatter
Assembly: Lucene.Net.Highlighter.dll
Syntax
public class GradientFormatter : object, IFormatter
Constructors
Name | Description |
---|---|
GradientFormatter(Single, String, String, String, String) | Sets the color range for the IDF scores |
Fields
Name | Description |
---|---|
m_bgBMax | |
m_bgBMin | |
m_bgGMax | |
m_bgGMin | |
m_bgRMax | |
m_bgRMin | |
m_fgBMax | |
m_fgBMin | |
m_fgGMax | |
m_fgGMin | |
m_fgRMax | |
m_fgRMin | |
m_highlightBackground | |
m_highlightForeground |
Methods
Name | Description |
---|---|
GetBackgroundColorString(Single) | |
GetForegroundColorString(Single) | |
HexToInt32(String) | Converts a hex string into an NOTE: This was hexToInt() in Lucene |
HighlightTerm(String, TokenGroup) |