You Are Here:

Community: Developer Discussion Boards

#1 Old 2 svg in 1 canvas? - 2007-09-28, 05:51

Join Date: Aug 2007
Posts: 7
mental_boi
Offline
Registered User
can i do this? i am making a gps app for 6110 Navigator and i want to have 2 svg on 1 canvas. the first svg is for the gui and the second one is for the map.. another question is where do i put the command listeners? on the canvas or on the SVGAnimator?

other suggestions are welcome!!
Reply With Quote

#2 Old Re: 2 svg in 1 canvas? - 2007-10-02, 12:53

Join Date: Nov 2006
Posts: 9
steppi
Offline
Registered User
Hi, i'm writing my final thesis on an application like this. i went on to use SVGImage on a GameCanvas, with an extra Thread for incrementing the timeline of the SVGAnimations. In the paint method i render several SVGImages on top of each other.
Reply With Quote

#3 Old Re: 2 svg in 1 canvas? - 2007-10-05, 15:03

Join Date: Dec 2006
Posts: 29
eagerb
Offline
Registered User
Hi there,

Could you show your paint() method code??

Thanks in advance

Ed
Reply With Quote

#4 Old Re: 2 svg in 1 canvas? - 2007-10-07, 22:03

Join Date: Nov 2006
Posts: 9
steppi
Offline
Registered User
Just an exampel to paint two graphics (one semi transparent) on top of each other (both member variables of the class)

Code:
public void paint(Graphics g) 
{
   sg.bindTarget(g); 
   sg.setTransparency(1.0f);
   sg.render(0, 0, svgImage);
   sg.setTransparency(0.7f);
   sg.render(0, 0, secondSvgImage);
   sg.releaseTarget(); 
}
EDIT:
The Timeline of an SVGImage is changable through
Code:
this.svgImage.incrementTime(value);
Last edited by steppi : 2007-10-08 at 14:00.
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

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

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
TinyLine SVG Player and SDK 1.8.2 released. girow Mobile Java Media (Graphics & Sounds) 0 2005-03-10 08:32
TinyLine SVG Player and SDK 1.8.2 released. girow Mobile Java Tools & SDKs 0 2005-03-10 08:31
Major problem with delegation to Canvas bartekn Mobile Java Media (Graphics & Sounds) 8 2003-10-08 18:46
TinyLine SVG Minute Toolkit: Optimizing SVG for J2ME girow Mobile Java Media (Graphics & Sounds) 0 2003-05-05 19:44
TinyLine SVG Minute Toolkit for J2ME: version 1.4 released girow Mobile Java General 0 2003-05-05 17:25

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ