You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by Clay Leeds <cl...@medata.com> on 2003/04/18 20:10:51 UTC

[OT] AWTRenderer defaults (Magnification & Zoom)?

I apologize for this off-topic question, but I spent 5 whole minutes of
unsuccessful searching (Google came back with 19 results for "java
awtrenderer default") and figured perhaps someone here might have the
answer.

Every time I output FOP to AWT for testing, I have to change the
magnification to 150% and then Maximize the window. It isn't really a
big deal, but I'd love to set this as a default and be done with it. Is
it possible to set AWTRenderer defaults for magnification/zoom and
window maximization (my guess is that this would be relatively easy if I
were using a servlet or some other Java App, but I'm working from the
Command Line)?

AWT viewer Defaults I want to change:
- Magnification/Zoom: 150%
- Window: Maximized

I can't think of any other defaults and/or how to set them, but if
there's a list somewhere, I might find something. Much obliged...

-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: [OT] AWTRenderer defaults (Magnification & Zoom)?

Posted by Clay Leeds <cl...@medata.com>.
Oleg,

Oleg Tkachenko wrote:
> Clay Leeds wrote:
>> AWT viewer Defaults I want to change:
>> - Magnification/Zoom: 150%
>> - Window: Maximized
> 
> Well, in the future we might choose how to deal with it - or through
> properties or by saving state on AWT viewer exit.
> And now you can tweak it yourself - see PreviewDialog constructor:
> 
> Change this
> this.setSize(new Dimension(379, 476));
> to whatever size (or maximize).
> 
> Change this:
> scale.setSelectedItem("100");
> renderer.setScaleFactor(100.0);
> to
> scale.setSelectedItem("150");
> renderer.setScaleFactor(150.0);

I haven't done any JAVA programming yet. I've only interacted with FOP
and JAVA through the command line. Forgive my ignorance, but where would
one make these changes?

-- 
Clay Leeds - cleeds@medata.com
Web Developer - Medata, Inc. - http://www.medata.com
PGP Public Key: https://mail.medata.com/pgp/cleeds.asc


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org


Re: [OT] AWTRenderer defaults (Magnification & Zoom)?

Posted by Oleg Tkachenko <ol...@multiconn.com>.
Clay Leeds wrote:

> I apologize for this off-topic question, but I spent 5 whole minutes of
> unsuccessful searching (Google came back with 19 results for "java
> awtrenderer default") and figured perhaps someone here might have the
> answer.
> 
> Every time I output FOP to AWT for testing, I have to change the
> magnification to 150% and then Maximize the window. It isn't really a
> big deal, but I'd love to set this as a default and be done with it. Is
> it possible to set AWTRenderer defaults for magnification/zoom and
> window maximization (my guess is that this would be relatively easy if I
> were using a servlet or some other Java App, but I'm working from the
> Command Line)?
> 
> AWT viewer Defaults I want to change:
> - Magnification/Zoom: 150%
> - Window: Maximized

Well, in the future we might choose how to deal with it - or through 
properties or by saving state on AWT viewer exit.
And now you can tweak it yourself - see PreviewDialog constructor:

Change this
this.setSize(new Dimension(379, 476));
to whatever size (or maximize).

Change this:
scale.setSelectedItem("100");
renderer.setScaleFactor(100.0);
to
scale.setSelectedItem("150");
renderer.setScaleFactor(150.0);

-- 
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org