Свойство | Тип | Описание | |
---|---|---|---|
bgRMax | int | ||
bgRMin | int | ||
fgRMax | int | ||
fgRMin | int | ||
highlightBackground | bool | ||
highlightForeground | bool |
Метод | Описание | |
---|---|---|
GradientFormatter ( float maxScore, string minForegroundColor, string maxForegroundColor, string minBackgroundColor, string maxBackgroundColor ) : System |
Sets the color range for the IDF scores
|
|
HexToInt ( string hex ) : int |
Converts a hex string into an int. Integer.parseInt(hex, 16) assumes the input is nonnegative unless there is a preceding minus sign. This method reads the input as twos complement instead, so if the input is 8 bytes long, it will correctly restore a negative int produced by Integer.toHexString() but not neccesarily one produced by Integer.toString(x,16) since that method will produce a string like '-FF' for negative integer values.
|
|
HighlightTerm ( string originalText, Lucene.Net.Search.Highlight.TokenGroup tokenGroup ) : string |
Метод | Описание | |
---|---|---|
GetBackgroundColorString ( float score ) : string | ||
GetForegroundColorString ( float score ) : string |
Метод | Описание | |
---|---|---|
GetColorVal ( int colorMin, int colorMax, float score ) : int | ||
IntToHex ( int i ) : string |
protected GetBackgroundColorString ( float score ) : string | ||
score | float | |
Результат | string |
protected GetForegroundColorString ( float score ) : string | ||
score | float | |
Результат | string |
public GradientFormatter ( float maxScore, string minForegroundColor, string maxForegroundColor, string minBackgroundColor, string maxBackgroundColor ) : System | ||
maxScore | float | /// The score (and above) displayed as maxColor (See QueryScorer.getMaxWeight /// which can be used to callibrate scoring scale) /// |
minForegroundColor | string | /// The hex color used for representing IDF scores of zero eg /// #FFFFFF (white) or null if no foreground color required /// |
maxForegroundColor | string | /// The largest hex color used for representing IDF scores eg /// #000000 (black) or null if no foreground color required /// |
minBackgroundColor | string | /// The hex color used for representing IDF scores of zero eg /// #FFFFFF (white) or null if no background color required /// |
maxBackgroundColor | string | /// The largest hex color used for representing IDF scores eg /// #000000 (black) or null if no background color required /// |
Результат | System |
public static HexToInt ( string hex ) : int | ||
hex | string | /// A string in capital or lower case hex, of no more then 16 /// characters. /// |
Результат | int |
public HighlightTerm ( string originalText, Lucene.Net.Search.Highlight.TokenGroup tokenGroup ) : string | ||
originalText | string | |
tokenGroup | Lucene.Net.Search.Highlight.TokenGroup | |
Результат | string |