Class SpanGradientFormatter
java.lang.Object
org.apache.lucene.search.highlight.GradientFormatter
org.apache.lucene.search.highlight.SpanGradientFormatter
- All Implemented Interfaces:
 Formatter
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:
 
- 
Field Summary
Fields inherited from class org.apache.lucene.search.highlight.GradientFormatter
highlightBackground, highlightForeground - 
Constructor Summary
ConstructorsConstructorDescriptionSpanGradientFormatter(float maxScore, String minForegroundColor, String maxForegroundColor, String minBackgroundColor, String maxBackgroundColor)  - 
Method Summary
Methods inherited from class org.apache.lucene.search.highlight.GradientFormatter
getBackgroundColorString, getForegroundColorString, hexToInt 
- 
Constructor Details
- 
SpanGradientFormatter
 
 - 
 - 
Method Details
- 
highlightTerm
- Specified by:
 highlightTermin interfaceFormatter- Overrides:
 highlightTermin classGradientFormatter- Parameters:
 originalText- The section of text being considered for markuptokenGroup- contains one or several overlapping Tokens along with their scores and positions.
 
 -