|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbox.searcher.HighLight
public class HighLight
An class used to mark the key words with highlight.
| Constructor Summary | |
|---|---|
HighLight()
|
|
| Method Summary | |
|---|---|
java.lang.String |
highLight(java.lang.String text,
java.lang.String query,
java.awt.Color c)
Cut the query string into words, and then mark the words highlight with Specified Color. |
void |
setCutterBox(CutterBox cb)
Set a CutterBox object for analyzing the query string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HighLight()
| Method Detail |
|---|
public java.lang.String highLight(java.lang.String text,
java.lang.String query,
java.awt.Color c)
text - text needed to highlight the query words in it.query - query string.c - Color.
public void setCutterBox(CutterBox cb)
CutterBox object for analyzing the query string.
cb - CutterBox object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||