|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--sos.reports.DefaultTextHighlighter
A default implementation of TextHighlighter that uses a hash map to
associate lists of text highlights to report elements.
| Constructor Summary | |
DefaultTextHighlighter()
Creates a n instance of DefaultTextHighlighter. |
|
| Method Summary | |
void |
addHighlight(Element element,
javax.swing.text.Highlighter.Highlight highlight)
Adds the specified text highlight to the list of highlights associated with the specified element. |
void |
clear()
Removes all text highlighting for all report elements. |
java.util.List |
getHighlights(Element element)
Returns the list of text highlights associated with the specified element. |
void |
removeAllHighlights(Element element)
Removes all text highlights associated with the specified element. |
void |
removeHighlight(Element element,
javax.swing.text.Highlighter.Highlight highlight)
Removes the specified text highlight for the list of highlights associated with the specified element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultTextHighlighter()
DefaultTextHighlighter.
| Method Detail |
public void addHighlight(Element element,
javax.swing.text.Highlighter.Highlight highlight)
TextHighlighter
addHighlight in interface TextHighlighterelement - report element for which to use the highlightinghighlight - a start offset, end offset, and painter describing how
to highlight the element's textTextHighlighter.getHighlights(sos.reports.Element),
TextHighlighter.removeHighlight(sos.reports.Element, javax.swing.text.Highlighter.Highlight)public void clear()
TextHighlighter
clear in interface TextHighlighterTextHighlighter.removeAllHighlights(sos.reports.Element)public java.util.List getHighlights(Element element)
TextHighlighter
getHighlights in interface TextHighlighterelement - report element for which the associated highlights are requested
element's highlightspublic void removeAllHighlights(Element element)
TextHighlighter
removeAllHighlights in interface TextHighlighterelement - report element for which to remove all associated highlightsTextHighlighter.clear()
public void removeHighlight(Element element,
javax.swing.text.Highlighter.Highlight highlight)
TextHighlighter
removeHighlight in interface TextHighlighterelement - report element for which to remove the highlightinghighlight - text highlighting to unassociate with elementTextHighlighter.addHighlight(sos.reports.Element, javax.swing.text.Highlighter.Highlight)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||