Hi Charles Abreu,

> GraphicsNode gn = getUpdateManager().getBridgeContext().getGraphicsNode 
> (element);
> Rectangle2D gnb = getViewingTransform().createTransformedShape(gn.getBounds
> ()).getBounds();

if i use getViewingTransform, it doesn't return the correct value of width and 
height. but it returns correct value of x and y.

if i use getViewBoxTransform, it doesn't return the correct value of x and y. 
but it returns correct value of width and height. 

So i used the following code. Is it correct way or is there any other way to 
find both values using single transform?


GraphicsNode gn = getUpdateManager().getBridgeContext().getGraphicsNode
(imgRect);
Rectangle2D gnb = getViewingTransform().createTransformedShape(gn.getBounds
()).getBounds();  
Rectangle2D gnb1 = getViewBoxTransform().createTransformedShape(gn.getBounds
()).getBounds();
Rectangle2D rect2D = new Rectangle2D.Float((int)gnb.getX(), (int)gnb.getY(), 
(int)gnb1.getWidth(), (int)gnb1.getHeight());


Thanks,
Selva



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

Reply via email to