×

Discussion Board

Results 1 to 2 of 2

Thread: j2me and SVG

  1. #1
    Registered User
    Join Date
    Feb 2010
    Posts
    18

    j2me and SVG

    hi
    I have a svg file in my j2me app . there is a text element in my svg file which i want to change it with j2me by use set element.
    I wrote my code and test it in computer , it worked well , but when I use it in cellphone I got this Error :

    DOM
    org.w3c.dom.DOmExpextion
    the type of element is not supported by the implements

    Here is my Code:
    ========SVG code=====
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Tiny//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-tiny.dtd">
    <svg baseProfile="tiny" display="inherit" height="320" version="1.1" viewBox="0 0 240 320" width="240" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:ev="http://www.w3.org/2001/xml-events">

    <text id="contactList_item_2" x="15" y="102">item 2</text>

    </svg>


    =======and here is my j2me code ============
    SVGElement svgLabel=(SVGElement)doc.getElementById("contactList_item_2");
    SVGAnimationElement textAnim = (SVGAnimationElement)doc.createElementNS("http://www.w3.org/2000/svg","set");
    textAnim.setTrait("attributeName","#text");
    textAnim.setTrait("to","this is a test);
    textAnim.setTrait("begin","indefinite");
    textAnim.setTrait("dur","indefinite");
    textAnim.setTrait("fill","freeze");
    svgLabel.appendChild(textAnim);
    textAnim.beginElementAt((float)0.5);
    =============================================

    I need this please help me .

  2. #2
    Nokia Developer Moderator
    Join Date
    Oct 2007
    Location
    Deva, Romania
    Posts
    3,471

    Re: j2me and SVG

    Let's continue the discussion in your other thread: http://discussion.forum.nokia.com/fo...8-j2me-and-SVG
    Please don't make several identical threads.

Similar Threads

  1. j2me and SVG
    By mehdi_shz11 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2010-09-05, 08:29
  2. SVG Icon in J2ME Application
    By nair.shanker in forum Mobile Java General
    Replies: 2
    Last Post: 2009-03-06, 08:24
  3. J2ME with SVG
    By cutenik73 in forum Mobile Java Media (Graphics & Sounds)
    Replies: 1
    Last Post: 2008-09-16, 05:25
  4. TinyLine SVG Minute Toolkit: Optimizing SVG for J2ME
    By girow in forum Mobile Java Media (Graphics & Sounds)
    Replies: 0
    Last Post: 2003-05-05, 18:44

Posting Permissions

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