Adding header/footer when printing [message #212650] |
Tue, 28 March 2006 07:21  |
Eclipse User |
|
|
|
Originally posted by: chrislott.spamcop.net
Hi,
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.
chris...
|
|
|
|
|
|
|
Re: Adding header/footer when printing [message #213420 is a reply to message #212966] |
Wed, 05 April 2006 16:44  |
Eclipse User |
|
|
|
A. Schosser wrote:
> Should not all printing features be part of GEF instead of GMF?
> I'm a layman to GMF, but in my opinion printing of Draw2D figures is
> close to GEF.
> And yes, I'd really like to have enhanced printing support in my GEF
> editor. ;-)
>
I agree and I 'need' the enhamced printing support!!!
Andreas
|
|
|
Powered by
FUDForum. Page generated in 0.04432 seconds