xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Steinbeck <steinb...@ice.mpg.de>
Subject Re: [Jchempaint-devel] re: Possible bug in Batik?
Date Wed, 06 Dec 2000 16:53:46 GMT
Bill, you were right with the super.paint(g).
Removing this will remove the <image>.

Thanks very much. 

Cheers, 

Chris

Bill Haneman wrote:
> 
> Egon said:
> >
> >As a mean time solution, i will strip the <image> element from the
> output.
> >
> >After that, i will try to find the reason which java code in
> JChemPaintPanel
> >paint() procedure triggers the generated <image>.
> 
> (I really shouldn't be doing this, but my curiousity
> got the better of me :-)
> 
> It might be the super.paint(g) call (which calls JPanel.paint(g).
> It's not necessary to call super.paint(g).
> 
> Try replacing that with
> 
>     g.setColor(backgroundColor);
>     g.fillRect(x, y, width, height);
> 
> where backgroundColor is (you guessed it ;-) the background
> color you want to use for the panel, and
> x,y,width,height are the appropriate components of
> getBounds() (called on the JChemPaintPanel instance);
> 
> If that's not the culprit it must be something in
> RenderingEngine().drawMolecule(g, molecule, rA);
> 
> or
> 
> JChemPaintUtils.dragMultiplexer(g,jcpm);
> 
> -Bill
> 
> >Egon
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
> >For additional commands, e-mail: batik-users-help@xml.apache.org
> >
> 
> ------
> Bill Haneman +353 1 8199279
> Ireland Desktop Engineering
> Sun Microsystems Ireland Ltd.
> 
> _______________________________________________
> Jchempaint-devel mailing list
> Jchempaint-devel@lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/jchempaint-devel


--
Dr. Christoph Steinbeck (http://www.ice.mpg.de/departments/ChemInf)
MPI of Chemical Ecology, Carl-Zeiss-Promenade 10, 07745 Jena, Germany
Tel: +49(0)3641 643644 - Fax: +49(0)3641 643665

What is man but that lofty spirit - that sense of enterprise. 
... Kirk, "I, Mudd," stardate 4513.3..

Mime
View raw message