xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dudka Tetyana" <tetyana.du...@epfl.ch>
Subject How to associate css file from JAVA?
Date Sun, 31 Oct 2004 17:51:57 GMT

I have mystyle.css file.

rect {

  fill: red;

  stroke: blue;

  stroke-width: 3


I want to associate all style properties for SVG element using Cascading
Style Sheets from the external

CSS file. And I want to connect this css file from java application. And I
don't know how to do this

exactly from java file and then instead of writing 

rect.setAttributeNS(null, "style", "fill: red; stroke-width: 3");

I want just say what style to use.

How can I do this?



View raw message