I think Cyril was just looking for an easy way to specify a checkbox in his xml doc ... I think svg is the best way, since it's platform neutral, doesn't involve fonts or external-graphics, and is pure xml (no java programming).
> -----Original Message----- > From: Mark Lillywhite [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 20 December 2001 13:55 > To: FOP dev > Subject: RE: selected checkbox > > > I haven't followed this thread at all, however it occurs to > me that you > can get a Graphics object from Batik (can't you?), draw into it using > the java.awt.Graphics API, and then output that as SVG. > > So couldn't you create a JCheckBox and paint it to an SVG > Graphics() ? > > Maybe I'm talking rubbish but I thought this was possible. > > M. > > On Thu, 2001-12-20 at 09:35, Conal Tuohy wrote: > > > -----Original Message----- > > > From: Cyril Rognon [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, 19 December 2001 21:34 > > > To: FOP dev > > > Subject: RE: selected checkbox > > > > > > > > > Do you have any svg code for a checkbox (checed and un > > > checked version) ? > > > > > > or some pointer where I could find some ? > > > > something like this? > > > > <!-- an unchecked checkbox --> > > <svg width="10mm" height="10mm"> > > <rect x="0" y="0" width="10mm" height="10mm" > > style="stroke:rgb(0,0,0);stroke-width:1;fill:none"/> > > </svg> > > > > <!-- a checked checkbox --> > > <svg width="10mm" height="10mm"> > > <rect x="0" y="0" width="10mm" height="10mm" > > style="stroke:rgb(0,0,0);stroke-width:1;fill:none"/> > > <line x1="2mm" y1="2mm" x2="8mm" y2="8mm" > > style="fill:none;stroke:rgb(0,0,0);stroke-width:2"/> > > <line x1="8mm" y1="2mm" x2="2mm" y2="8mm" > > style="fill:none;stroke:rgb(0,0,0);stroke-width:2"/> > > </svg> > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, email: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]