The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » LWUIT

Thread: Manually set clipping for the icon in a Label?

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
This question is answered. Helpful answers available: 2. Correct answers available: 1.

Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Oct 7, 2008 5:54 AM by: kawaiimomo
kawaiimomo

Posts: 247
Manually set clipping for the icon in a Label?
Posted: Oct 7, 2008 3:40 AM
 
  Click to reply to this thread Reply

Hi all,

I'm implementing a Loading bar which shows the real percentage sent of total data. My first idea was to recreate the image everytime (it's just two vertical gradients forming a progress bar).

Then I thought why recreating the image over and over if I could set the full bar and modify the clipping area for the Label icon? It's this possible? It's worth it?

Thanks

Chen Fishbein
Re: Manually set clipping for the icon in a Label?
Posted: Oct 7, 2008 5:15 AM   in response to: kawaiimomo
  Click to reply to this thread Reply

Hi,
I think this is what you're looking for:
http://lwuit.blogspot.com/2008/05/progress-indicator-threads-in-lwuit.html

Chen

lwuit-users@mobileandembedded.org wrote:
> Hi all,
>
> I'm implementing a Loading bar which shows the real percentage sent of total data. My first idea was to recreate the image everytime (it's just two vertical gradients forming a progress bar).
>
> Then I thought why recreating the image over and over if I could set the full bar and modify the clipping area for the Label icon? It's this possible? It's worth it?
>
> Thanks
> [Message sent by forum member 'kawaiimomo' (kawaiimomo)]
>
> http://forums.java.net/jive/thread.jspa?messageID=303700
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
> For additional commands, e-mail: users-help@lwuit.dev.java.net
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net


kawaiimomo

Posts: 247
Re: Manually set clipping for the icon in a Label?
Posted: Oct 7, 2008 5:54 AM   in response to: Chen Fishbein
 
  Click to reply to this thread Reply

Hi Chen,

yes, it is. I encourage myself and everybody to check first on lwuit blog before posting, as many subjects has been explained in detail and with examples.

Thanks ;-)




 XML java.net RSS