>> Such zoom-invariant elements are for example the stroke size of the streets, >> the size of text, some drawings size (like the car accident), ecc.. I >> understand it's a large problem.
>In terms of invariable stroke width, SVG Tiny 1.2 specifically defines >that in the "non-scaling-stroke" value for the "vector-effect" >property [3]. Unfortunately, as far as I know, Batik doesn't implement >this yet (anyone feels like contributing this simple and yet >interesting/valuable feature?). My first subproblem is how to set the size of the rendered Shape on the GVT. I tried to solve this feature working on the StrokeShapePainter. BridgeContext bc = ((JSVGCanvas)c).getUpdateManager().getBridgeContext(); GraphicsNode gn = (GraphicsNode)bc.getGraphicsNode(element); StrokeShapePainter ssp = new StrokeShapePainter(gn.getOutline()); ssp.setStroke(new BasicStroke(...whatever...)); ...but then how can I do for updating the GraphicsNode on this Shape? I tried to get the Paint object and set it on a Graphics2D instance but it doesn't work.. or at least I don't know how to make it work. -- View this message in context: http://www.nabble.com/Dynamic-Elements-on-zoom-tp23584458p23632115.html Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
