On Sep 21, 2006, at 13:16 , [EMAIL PROTECTED] wrote:
And yes the SVGLocatable interface is the right interface
for querying and manipulating the transform. Also don't be
afraid to insert additional grouping elements to adjust the
transform.
Hm. What are the prerequisites to using the SVGLocatable transforms?
Should I be able to add an element and transform it like this?
// ...load SVGDocument...
Element g = svgDocument.createElementNS
( SVGConstants.SVG_NAMESPACE_URI, SVGConstants.SVG_G_TAG );
someElement.appendChild( g );
SVGMatrix xform = SVGLocatableSupport.getCTM( g );
xform.translate( 42.0f, 42.0f );
// ...proceed to rendering...
This produces a NullPointerException in the anonymous SVGMatrix
implementation by SVGLocatableSupport.getCTM() - the 'g' I created
doesn't have an SVGContext yet. I suppose I'm skipping essential
steps... Do I need to build a GVT first, or do some sort of update?
Thanks,
//ebu
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]