Tabs in TextFlows [message #185887] |
Thu, 30 June 2005 16:11 |
Eclipse User |
|
|
|
Originally posted by: freddie_nurke.hotmail.com
I'm trying to implement tabstops for my text editor. It looks like
Graphics#drawString completely ignores tab characters, so I presume I
have to break the TextFlow into fragments based on the tabs in the
string, then somehow position the fragments appropriately. This is
problematic as 'fragments' is package private, so I can't do anything
with it in my subclass.
I'm also not sure where or how I'd position the fragments. I'm looking
in ParagraphTextLayout, FlowUtilities, and TextFragmentBox, but I don't
understand how the text actually gets into the position it's in. Any
help would be appreciated.
Thanks,
Fred
|
|
|
Powered by
FUDForum. Page generated in 0.04571 seconds