Show / Hide Table of Contents

    Class SpanGradientFormatter

    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.

    Inheritance
    System.Object
    GradientFormatter
    SpanGradientFormatter
    Implements
    IFormatter
    Inherited Members
    GradientFormatter.m_fgRMin
    GradientFormatter.m_fgGMin
    GradientFormatter.m_fgBMin
    GradientFormatter.m_fgRMax
    GradientFormatter.m_fgGMax
    GradientFormatter.m_fgBMax
    GradientFormatter.m_highlightForeground
    GradientFormatter.m_bgRMin
    GradientFormatter.m_bgGMin
    GradientFormatter.m_bgBMin
    GradientFormatter.m_bgRMax
    GradientFormatter.m_bgGMax
    GradientFormatter.m_bgBMax
    GradientFormatter.m_highlightBackground
    GradientFormatter.GetForegroundColorString(Single)
    GradientFormatter.GetBackgroundColorString(Single)
    GradientFormatter.HexToInt32(String)
    Namespace: Lucene.Net.Search.Highlight
    Assembly: Lucene.Net.Highlighter.dll
    Syntax
    public class SpanGradientFormatter : GradientFormatter, IFormatter

    Constructors

    | Improve this Doc View Source

    SpanGradientFormatter(Single, String, String, String, String)

    Declaration
    public SpanGradientFormatter(float maxScore, string minForegroundColor, string maxForegroundColor, string minBackgroundColor, string maxBackgroundColor)
    Parameters
    Type Name Description
    System.Single maxScore
    System.String minForegroundColor
    System.String maxForegroundColor
    System.String minBackgroundColor
    System.String maxBackgroundColor

    Methods

    | Improve this Doc View Source

    HighlightTerm(String, TokenGroup)

    Declaration
    public override string HighlightTerm(string originalText, TokenGroup tokenGroup)
    Parameters
    Type Name Description
    System.String originalText
    TokenGroup tokenGroup
    Returns
    Type Description
    System.String
    Overrides
    GradientFormatter.HighlightTerm(String, TokenGroup)

    Implements

    IFormatter

    See Also

    GradientFormatter
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)