You Are Here:

Community: Developer Discussion Boards

#1 Old Cursor and screen coordinates - ImageItem - 2008-09-07, 18:22

Join Date: Nov 2007
Posts: 42
soofika
Offline
Registered User
I have added an imageItem to a form and displayed an image. Now I want to overlay a cursor and be able to move around and capture coordinates where the cursor is.

All my reading indicate that this is not possible directly with the imageItem or it's superclass. It seems like I have to create a custom Canvas item, with these capabilities. Before I go that route, I thought I might check with the experts here to see, to see if there is a better way.

Appreciate any help here....

Soofi
Reply With Quote

#2 Old Re: Cursor and screen coordinates - ImageItem - 2008-09-07, 18:31

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi Soofi,

if you want to implement a cursor that can freely move around the device screen, then Canvas is the right option. Using it, you'll get total control on cursor movement and on its coordinates (since you have to implement them all by your own :)).

Pit


www.jappit.com - mobile and web blog
Reply With Quote

#3 Old Re: Cursor and screen coordinates - ImageItem - 2008-09-07, 19:29

Join Date: Nov 2007
Posts: 42
soofika
Offline
Registered User
Thanks Pit, Do you have any good code examples as a back drop. There is enough on the net on this, but if you know of some good example, it will be much appreciated....

Soofi
Reply With Quote

#4 Old Re: Cursor and screen coordinates - ImageItem - 2008-09-07, 22:46

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi Soofi,

you could try to take a look at Apime, a Java ME UI framework that uses an approach similar to yours: so, it uses a mouse pointer to manage user interactions.

Apart from this, I'm not currently aware of any other related source code or examples, but I'll check around!

Pit


www.jappit.com - mobile and web blog
Reply With Quote

#5 Old Re: Cursor and screen coordinates - ImageItem - 2008-09-09, 14:37

Join Date: Nov 2007
Posts: 42
soofika
Offline
Registered User
Hey Pit,

Thanks for the tip...

I downloaded Apime and was able to compile and run all the examples. It is very functional and seems to have all the components I need for my project. I like the fact that you can grab the entire screen for display. The controls however are clunky, but I don't plan to use many of them.

Are you aware of any one here who may haved used Apime for a real project, just to see if there are any shortcomings that I should be aware of.

Soofi
Reply With Quote

#6 Old Re: Cursor and screen coordinates - ImageItem - 2008-09-09, 14:53

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi Soofi,

happy to know it helped. About real projects no, I'm not aware of any of them using Apime.
Anyway, if you want some feedbacks about single Java ME UI frameworks, you can look at this article:

http://newsofthefuture.net/index.php...-for-J2ME.html

Pit


www.jappit.com - mobile and web blog
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

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X 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