Hi Andi,

> thomas.deweese wrote:

> > Also CSS has the concept of alternate stylesheets which Batik
> > supports so you can do something like:
> > 
> >         <!-- Always loaded -->
> > <?xml-stylesheet type="text/css" href="../../resources/style/test.css" 
?>
> > 
> >         <!-- Loaded if user selects 'Hot' from alternate stylsheets 
menu 
> -->
> > <?xml-stylesheet type="text/css" title="Hot" 
> > href="../../resources/style/hot.css" alternate="yes" ?>

jimself <[EMAIL PROTECTED]> wrote on 07/12/2006 11:18:40 AM:

> Great! I was not aware of the "alternate" option. 
> And how do I change between these css files inthe code? 

   You tell Batik what alternateStyleSheet to use through the
UserAgent class (batik.swing.svg.SVGUserAgent.getAlternateStyleSheet()). 
This is checked when the document is first loaded (so when you 
change it in the user agent you have to reload the SVG document).

> You are talking about an "alternate stylsheets menu". 
> What is that or where can I find it?

   This is in 'Batik Squiggle' the SVG viewing part of Batik.
The code that does most of the work for this is in the 
batik.apps.svgbrowser.JSVGViewerFrame class (search for 
'alternateStyleSheet').

   Good luck!


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

Reply via email to