xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Иван Кардашов" <kiv_...@mail.ru>
Subject JSVGCanvas' s problem
Date Mon, 10 Sep 2001 06:25:34 GMT
Hello!
I have some problems with JSVGCanvas
When i write:
/-------------------------------------------------
        JFrame f = new JFrame("MY FRAME");
        JSVGCanvas svgCanvas = new JSVGCanvas();
        f.getContentPane().add(svgCanvas);
        f.setSize(400, 400);
        f.setVisible(true);
        f.show();
	Graphics2D g = (Graphics2D)svgCanvas.getGraphics();
	g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                           RenderingHints.VALUE_ANTIALIAS_ON);

// and, for example, paint some ellipse

        Ellipse2D ellipse = new Ellipse2D.Float(20, 0, 60, 60);
        g.setPaint(new Color(176, 22, 40));
        g.fill(ellipse);


/-------------------------------------------------

why the ellipse disappear after any manipulation with the window
And maybe smth else i should use in the program to view 
a graphical object properly?

Thanks 

Ivan Kardashov


---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message