×

Discussion Board

Results 1 to 1 of 1
  1. #1
    Registered User
    Join Date
    Apr 2010
    Posts
    6

    Question jsr226 SVG animation problem

    Hi,all
    I have a problem and I hope someone could help me.
    I have displayed a map on WTK, and then I want to display a svg animation on the map.But there is error:
    Using Pisces Renderer (native version)
    java.lang.ClassCastException

    and the code is :
    private void drawSVG(){
    Canvas svgCanvas;
    SVGImage svgIamge = null;
    //load a test svg
    try {
    InputStream svgStream = getClass().getResourceAsStream("thumbsUp.svg");
    svgIamge = (SVGImage) (SVGImage.createImage(svgStream, null));
    } catch (IOException ex) {
    ex.printStackTrace();
    }
    //setup the svgAnaimation
    SVGAnimator svgAnimator = SVGAnimator.createAnimator(svgIamge);
    svgCanvas =(MapViewUI) svgAnimator.getTargetComponent();
    svgAnimator.play();
    }

    the MapViewUI class is the GameCanvas to display the map.

    I hope someone can help me.
    Thanks in advance.

    good regards.
    zhaling
    Last edited by zhaling; 2010-04-19 at 14:19.

Similar Threads

  1. a SVG file problem
    By schmeichel in forum Symbian
    Replies: 1
    Last Post: 2010-01-30, 07:59
  2. SVG Canvas RePaint problem on return of another displayable
    By ---___db___--- in forum Mobile Java General
    Replies: 6
    Last Post: 2009-02-26, 17:20
  3. Problem in Bitmap Animation
    By aditighosal in forum Symbian
    Replies: 2
    Last Post: 2008-07-22, 07:45
  4. Problem with Sprite Animation
    By ramka001 in forum Mobile Java General
    Replies: 1
    Last Post: 2003-05-08, 10:11

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •