|Adding header/footer when printing [message #212650]
||Tue, 28 March 2006 12:21
Originally posted by: chrislott.spamcop.net|
I'm trying to figure out how to add header/footer information, like page
numbers, when printing a Draw2d figure. I did not see anything about
printing in the GEF FAQ, and searching the web didn't yield much either.
I'm hoping someone will please point me to some examples that might show
possibilities for this.
Right now I'm working with the database schema editor example
("com.realpersist.gef.schemaeditor"). It uses the GEF class
PrintGraphicalViewerOperation, which is a subclass of Draw2d's
PrintFigureOperation class. Basic printing works just fine. For my first
extension I'd like to add page numbers. It seems to me that I probably
have to add graphical (text) elements to the figure so that they print.
It looks like I might be able to use the drawText() methods on the
Graphics object that is created in PrintFigureOperation's printPages()
method. I'm new to this, tho, so would very much welcome any guidance and
cautions about gotchas.
Thanks in advance.
Powered by FUDForum
. Page generated in 0.03201 seconds