thomas.deweese wrote:
> 
> 
>                       SVGRect shapeBound = 
> ((SVGLocatable)shape).getBBox();
> 
>>                      SVGMatrix mat = 
> ((SVGLocatable)shape).getScreenCTM();
>>                      SVGMatrix imat = mat.inverse();
>>                      bPt1 = doc.getRootElement().createSVGPoint();
>>                      bPt1.setX(shapeBound.getX());
>>                      bPt1.setY(shapeBound.getY());
>>                      bPt1 = bPt1.matrixTransform(imat); 
>>                      bPt2 = doc.getRootElement().createSVGPoint();
>>                      bPt2.setX(shapeBound.getX()+shapeBound.getWidth());
>>                      bPt2.setY(shapeBound.getY());
>>                      bPt2 = bPt2.matrixTransform(imat); 
>>                      bPt3 = doc.getRootElement().createSVGPoint();
>>                      bPt3.setX(shapeBound.getX());
>> bPt3.setY(shapeBound.getY()+shapeBound.getHeight());
>>                      bPt3 = bPt3.matrixTransform(imat); 
>>                      bPt4 = doc.getRootElement().createSVGPoint();
>>                      bPt4.setX(shapeBound.getX()+shapeBound.getWidth());
>> bPt4.setY(shapeBound.getY()+shapeBound.getHeight());
>>                      bPt4 = bPt4.matrixTransform(imat); 
>> 
>> but i don't understand how to update these points to the new 
> positions... 
> 
> 

I add the code above also OnUpAction method (that is i release mouse button)
but the bounding box not update it position...it stay in old position
-- 
View this message in context: 
http://www.nabble.com/map-coordinates-tf2938566.html#a8218451
Sent from the Batik - Users mailing list archive at Nabble.com.


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

Reply via email to