The original style value that you're displaying does not have a stroke
color.  You're adding a stroke color which is causing the stroke to be
displayed.  I don't know if any values from parent elements are
inherited, but it appears you have an implied stroke of 'none' and a
stroke-width greater than 0.  Since you're applying a stroke color, a
stroke suddenly appears where none was before.  Change your stroke and
fill to different colors and you should see the difference (and the
problem).

Michael Bishop

> -----Original Message-----
> From: Marshall Keith J NPRI [mailto:[EMAIL PROTECTED] 
> Sent: Wednesday, February 13, 2008 9:53 AM
> To: [email protected]
> Subject: Changing Style Property - Line Thickness Problem
> 
> Batik-Users,
> 
> I've run into a problem after attempting to change the color 
> of a text element that references an embedded stylesheet. The 
> problem is that after I change the color the line thickness 
> is lost. For some reason, the text becomes thicker.
> 
> During the update I change the color by changing two style 
> properties, for example:   
> 
> (((SVGStylable)n).getStyle()).setProperty("stroke", 
> "rgb(122,122,122)", ""); 
> (((SVGStylable)n).getStyle()).setProperty("fill", 
> "rgb(122,122,122)", ""); 
> 
> The stylesheet value for the text element is: .st9 
> {fill:#000000;font-family:Arial;font-size:0.666664em}
> 
> Does anyone know why the original link thickness is changed?
> 
> Thanks for your help.
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: 
> [EMAIL PROTECTED]
> 
> 

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

Reply via email to