Kevin Maione wrote:
I am trying to implement the suggestion Thomas made in the previous
note but was hoping for some guidance...
SVGRect bbox = textElement.getBBox();
//I've got a non-null bounding box here so I'm hoping I'm ok...
System.out.println( bbox +
circle so I can apply
//Thomas's suggestion...
System.out.println( "Completed successfully...");
} catch( Throwable t ) {
System.out.println( "Throwable:"+t);
}
Hi Kevin,
Well Batik will not 'do this for you' however Java2D with Batik
will do this fairly easily. In particular using Batik you can get
the BBox of the text (org.w3.dom.svg.SVGText.getBBox()) and you can get the
'outline' of a shape node (batik.gvt.GraphicsNode.getOutline()).
The using the