×

Discussion Board

Results 1 to 4 of 4
  1. #1
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    87

    filling rectangle with Long data type

    Hello,
    I want to get fill rectangle with long datatype. or techenically how can i draw a bar corresponding to the long datatype: fillRectangle(int,int,int,long);
    thanks in advance

  2. #2
    Super Contributor
    Join Date
    Mar 2008
    Location
    The Capital of INDIA
    Posts
    4,328

    Re: filling rectangle with Long data type

    Quote Originally Posted by apnasi View Post
    Hello,
    I want to get fill rectangle with long datatype. or techenically how can i draw a bar corresponding to the long datatype: fillRectangle(int,int,int,long);
    thanks in advance
    Since the fillRect(int,int,int,int) is the method of the Graphics class and has the syntax of the all the params as int, hence you will not be able to use the long data types for this.You will be prompt with compile time error.
    Thanks with Regards,

    R a j - The K e r n e l


    Join Delhi-NCR Nokia Developer's Community,

  3. #3
    Regular Contributor
    Join Date
    Mar 2010
    Posts
    87

    Re: filling rectangle with Long data type

    Thanks, is there any other way to present graphical view as bar chart against long values.

  4. #4
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: filling rectangle with Long data type

    is there any other way to present graphical view as bar chart against long values.
    Just scale it down, display the scale. i.e. say you have long Ingt value 12345678, you divide by 100000 and get a Int -

    Now use these scaledown Int's to fillRect() and show bar chart.

    thanks,
    ~Amitabh

Similar Threads

  1. Get Value from CEikDateEditor and Data Type
    By bnpawar in forum Symbian
    Replies: 4
    Last Post: 2009-11-03, 13:06
  2. IMAD Codec data type
    By mobile_don in forum Symbian Media (Closed)
    Replies: 0
    Last Post: 2007-07-03, 15:27
  3. D211 with RH7.3
    By fiveam in forum Multimodecards
    Replies: 3
    Last Post: 2003-02-24, 09:06
  4. D211 : Compiling the user interface for Linux...?
    By franz_meyer in forum Multimodecards
    Replies: 1
    Last Post: 2002-12-09, 11:48
  5. Problem with Nokia D211 Linux Drivers
    By fiveam in forum Multimodecards
    Replies: 1
    Last Post: 1970-01-01, 02:00

Posting Permissions

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