Hi,

On Thu, 2007-03-08 at 04:39 +0100, Tacio Santos wrote:
> thank you, but the problem I'm getting now it that  "ellipse" (my
> pebble) doesn't implement SVGElement and dst_e  doesn't implement
> SVGLocatable, i.e. I'm having some difficulties understanding how and
> when to cast/convert one element type to another.
> 
> public void moveEllipseToPos( String ellipseId, String dstId ){
>   SVGDocument document = this.getSVGDocument();
>   final Element dst_e =  document.getElementById(dstId);
>   final Element ellipse = document.getElementById(ellipseId);
> ..

Try to cast into SVGElement

final SVGElement dst_e =  (SVGElement)document.getElementById(dstId);
final SVGElement ellipse = (SVGElement)document.getElementById(ellipseId);

If I am not wrong SVGElement implement SVGLocatable, please check the SVG DOM 
API spec.


Regards
Tonny Kohar
-- 
Sketsa 
SVG Graphics Editor
http://www.kiyut.com


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

Reply via email to