mirror of https://github.com/apache/lucene.git
Changed visibility of methods to allow easier extensions - Thx Dave Spencer for suggestion.
Subclasses can now override highlightTerm to format text with spans/divs etc instead of default <font> tag git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@151027 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
972f2923bb
commit
b64bf341ff
|
@ -143,7 +143,7 @@ public class GradientFormatter implements Formatter
|
|||
return sb.toString();
|
||||
}
|
||||
|
||||
private String getForegroundColorString(float score)
|
||||
protected String getForegroundColorString(float score)
|
||||
{
|
||||
int rVal = getColorVal(fgRMin, fgRMax, score);
|
||||
int gVal = getColorVal(fgGMin, fgGMax, score);
|
||||
|
@ -156,7 +156,7 @@ public class GradientFormatter implements Formatter
|
|||
return sb.toString();
|
||||
}
|
||||
|
||||
private String getBackgroundColorString(float score)
|
||||
protected String getBackgroundColorString(float score)
|
||||
{
|
||||
int rVal = getColorVal(bgRMin, bgRMax, score);
|
||||
int gVal = getColorVal(bgGMin, bgGMax, score);
|
||||
|
|
Loading…
Reference in New Issue