get information of which line is hidden/collapse in editor

Peter Cheung <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <HKNPR04MB05162270DF6F4E574A2A9076B5390@HKNPR04MB0516.apcprd04.prod.outlook.com>
hi
  how to get information of which line is hidden/collapse in editor? I use the following code to get character colour, but no information of which line is hidden

HighlightsContainer hc = HighlightingManager.getInstance(jtc).getBottomHighlights();
HighlightsSequence hq = hc.getHighlights(0, document.getLength());
while (hq.moveNext()) {
	AttributeSet as = hq.getAttributes();
	Color color=as.getAttribute(StyleConstants.Foreground);
}	

thanks
from Peter
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.