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:
Mark Harwood 2005-01-07 21:44:39 +00:00
parent 972f2923bb
commit b64bf341ff
1 changed files with 2 additions and 2 deletions

View File

@ -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);