Hi,

since I added a JSVGCanvas in my JFrame, the frame itself keeps "empty"
until I resize the window, after the canvas was build completly
(SVGDocument&SVGGraphics2D generated and added). At the moment I use a
small hack, to resize the frame, after all was generated.

I have another question about zooming the document. Is there anywhere a
property, which saves the current canvas zoom?
Is it possible to change the zoom absolute and not relativ? For example
I would set it back to the original size. Or would implement a combobox,
like in Evince (Gnome PDF Viewer) with "50%", "100%", "200%" etc. 

If I wand zoom features like "Fit in Page", " Fit in width", must I
implement them by my own, or is there already a class.


I have another question related to SVGGraphics2D. I want to draw a rect,
filled with a transparent color and a non-transparent black stroke,
At the moment I draw it this way:

        svgG2D.setPaint(Color.BLACK);
        BasicStroke stroke = new BasicStroke((float)1.5);
        svgG2D.setStroke(stroke);
        svgG2D.draw(shape);
        svgG2D.setPaint(new Color(255, 0, 0, 64));
        svgG2D.fill(shape);                     

I guess this is not the most intelligent solution...

Thanks for your help.

Regards,

Keywan


-- 
Keywan Najafi Tonekaboni
http://www.prometoys.net

[EMAIL PROTECTED]:/# apt-get --purge remove dominion
After unpacking world will be freed.
You are about to do something potentially beneficial
To continue type in the phrase 'Yes, do as We say!'


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to