|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
An object that specifies report text highlighting. It maps report elements
to a list of javax.swing.text.Highlighter.Highlight
descriptions, which
include a start offset, an end offset, and a painter.
JReportPane
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. |
Method Detail |
public void addHighlight(Element element, javax.swing.text.Highlighter.Highlight highlight)
element
- report element for which to use the highlightinghighlight
- a start offset, end offset, and painter describing how
to highlight the element's text
java.lang.NullPointerException
- if element
or
highlight
is null
getHighlights(sos.reports.Element)
,
removeHighlight(sos.reports.Element, javax.swing.text.Highlighter.Highlight)
public void clear()
removeAllHighlights(sos.reports.Element)
public java.util.List getHighlights(Element element)
element
- report element for which the associated highlights are requested
element
's highlights
java.lang.NullPointerException
- if element
is null
public void removeAllHighlights(Element element)
element
- report element for which to remove all associated highlights
java.lang.NullPointerException
- if element
is null
clear()
public void removeHighlight(Element element, javax.swing.text.Highlighter.Highlight highlight)
element
- report element for which to remove the highlightinghighlight
- text highlighting to unassociate with element
java.lang.NullPointerException
- if element
or
highlight
is null
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 |