Lucene.Net  3.0.3
Lucene.Net is a .NET port of the Java Lucene Indexing Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties
Public Member Functions | List of all members
Lucene.Net.Search.Highlight.SpanGradientFormatter Class Reference

Formats text with different color intensity depending on the score of the term using the span tag. GradientFormatter uses a bgcolor argument to the font tag which doesn't work in Mozilla, thus this class. More...

Inherits Lucene.Net.Search.Highlight.GradientFormatter.

Public Member Functions

 SpanGradientFormatter (float maxScore, String minForegroundColor, String maxForegroundColor, String minBackgroundColor, String maxBackgroundColor)
 
override String HighlightTerm (String originalText, TokenGroup tokenGroup)
 
- Public Member Functions inherited from Lucene.Net.Search.Highlight.GradientFormatter
 GradientFormatter (float maxScore, string minForegroundColor, string maxForegroundColor, string minBackgroundColor, string maxBackgroundColor)
 Sets the color range for the IDF scores
 
virtual string HighlightTerm (string originalText, TokenGroup tokenGroup)
 
- Public Member Functions inherited from Lucene.Net.Search.Highlight.IFormatter
string HighlightTerm (System.String originalText, TokenGroup tokenGroup)
 

Additional Inherited Members

- Static Public Member Functions inherited from Lucene.Net.Search.Highlight.GradientFormatter
static int HexToInt (string hex)
 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.
 
- Protected Attributes inherited from Lucene.Net.Search.Highlight.GradientFormatter
bool highlightForeground
 
bool highlightBackground
 

Detailed Description

Formats text with different color intensity depending on the score of the term using the span tag. GradientFormatter uses a bgcolor argument to the font tag which doesn't work in Mozilla, thus this class.

See Also
GradientFormatter

Definition at line 29 of file SpanGradientFormatter.cs.

Constructor & Destructor Documentation

Lucene.Net.Search.Highlight.SpanGradientFormatter.SpanGradientFormatter ( float  maxScore,
String  minForegroundColor,
String  maxForegroundColor,
String  minBackgroundColor,
String  maxBackgroundColor 
)

Definition at line 35 of file SpanGradientFormatter.cs.

Member Function Documentation

override String Lucene.Net.Search.Highlight.SpanGradientFormatter.HighlightTerm ( String  originalText,
TokenGroup  tokenGroup 
)

Definition at line 41 of file SpanGradientFormatter.cs.


The documentation for this class was generated from the following file: