posted 19 years ago
Ok.. some background - displayPane object is given a SwitchPermit object when it is created.
Using data in the SwitchPermit object, displayPane creates graphics which it draws on itself and also can create a bufferedImage with the same graphics ( createBufferedImage() ).
This bufferedImage is than passed to a Page object - in order to easily print the different pages.
Page also does some graphics manipulation in its print(). (translating image)
Also - there are some unneccessary fillRect calls, I had some problems with printing large black squares on pages that were not filled with graphics.
( note: this is my first time working with printing, graphics , or bufferedImages - please dont view this as 'the right way' to do things )
displayPane.printPages ( shortened):
displayPane.createBufferedImage:
Page.print:
[ December 22, 2004: Message edited by: Rich Stepanski ]
[ December 22, 2004: Message edited by: Rich Stepanski ]