Re: [JAVA2D] A few simple Java 2D questions ...

2006-05-25 Thread java2d
Why not take a few seconds and try it yourself? I had done so, without ... thinking. I passed one of the constructors the result of a method with an integer return value. Depends on the application; double is really important in the mapping/GIS industry, for example. OK. It sounds like you

[JAVA2D] Black and White printing

2006-05-25 Thread java2d
I only know about printing from the tutorial and using it as a service. I want to add to the print menu : Black and White to the picks already there of Monochrome and Color. What is best way to do this. [Message sent by forum member 'diverdad' (diverdad)]

[JAVA2D] Printing Resolution

2006-05-25 Thread java2d
How do I take advantage of the full resolution of the printer? When I do a default print using the printer service I seem to get the resolution of the window that I am printing, is there some way of getting the resolution of the printer not that of the display device? I have a Java2D graphics

Re: [JAVA2D] Black and White printing

2006-05-25 Thread Phil Race
Do you mean you want to update the list of choices the user sees for some reason? The dialog is not customisable in this way so you'd have to write your own dialog. Also I wonder how you expect to communicate this intent to the printing API and ultimately to the printer driver For example, on

Re: [JAVA2D] Printing Resolution

2006-05-25 Thread Phil Race
I suspect you are printing a double-buffered swing component window using paint(). That paints to the swing back buffer which is unsurprisingly at screen resolution and then that is what you are sending to the printer. Use Component.printAll() to print a Component, *not* Component.paint().

Re: [JAVA2D] Black and White printing

2006-05-25 Thread java2d
Yes I understand that I need to display a new dialog. Black and white is not the same as monchrome. With monochrome you get shades of gray. I want the background to be white and all drawings to be black. [Message sent by forum member 'diverdad' (diverdad)]

Re: [JAVA2D] Black and White printing

2006-05-25 Thread Phil Race
I want the background to be white and all drawings to be black So you need to proceed as I advised but the new dialog seems like a lot of work for little gain. We can't add it in our dialog as we can't control the colours you use. -phil. Yes I understand that I need to display a new dialog.

Re: [JAVA2D] Black and White printing

2006-05-25 Thread java2d
Phil, I'm still puzzled. It isn't clear how to accomplish what I want. If I was in a color lookup world I would do something like: set 0 - white and colors 1-256 to black. The problem with monochrome printing is the user has a yellow line drawn and wants to print it on a black and white

[JAVA2D] Canvas vs. JComponent for drawing (again)

2006-05-25 Thread Jonathan Mast
[I sent this the first day I signed up for this list, so I'm thinking a snafu might have kept it from posting, or AOL might have blocked any replies at first, anyways here it is:] I'm reasonably proficient in Swing but as I've began programming in java2D, I'm puzzled by all the usages of