Hi,
True, using the format for display purpose should cause no harm. If you like to
add it, go ahead, otherwise I may do it a little later.
Cheers,
Tomas
On Sep 6, 2011, at 6:02 PM, Pudney Chris (ext) GBJH wrote:
> G'day,
>
> One of the features that is lost with this change is the ability to display
> parameter values using specific formats, e.g. MZmineCore.getIntensityFormat()
> .getMZFormat() & .getRTFormat().
>
> Would it be possible to add the ability to specify the *display* format in
> the constructor for DoubleParameter and IntegerParameter?
>
> Regards,
> Chris.
>> Hi all,
>>
>> I decided to use JTextField instead of JFormattedTextField for
>> NumberParameter. The reason is that JFormattedTextField has some very odd
>> properties:
>> - value reported by getValue() may be different than the value actually
>> typed in the text box, because it has not been "committed" yet by pressing
>> enter or changing the focus
>> - listeners are not notified about value change until that value is
>> committed
>> - when format is set to e.g. 1 decimal digit ("0.0"), it becomes impossible
>> to enter 2 decimals, which is frustrating for the user
>>
>> So, I split the NumberParameter into 2: DoubleParameter and
>> IntegerParameter. Both of them use JTextField as an editing component.
>>
>> Cheers,
>>
>> Tomas
>
>
> Syngenta Limited, Registered in England No 2710846
> Registered Office : Syngenta Limited, European Regional Centre, Priestley
> Road, Surrey Research Park, Guildford, Surrey, GU2 7YH, United Kingdom
>
>
> This message may contain confidential information. If you are not the
> designated recipient, please notify the sender immediately, and delete the
> original and any copies. Any use of the message by you is prohibited.
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev_______________________________________________
> Mzmine-devel mailing list
> Mzmine-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mzmine-devel
===============================================
Tomas Pluskal
G0 Cell Unit, Okinawa Institute of Science and Technology
1919-1 Tancha, Onna-son, Okinawa 904-0412, Japan
TEL: +81-98-966-8684
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Mzmine-devel mailing list
Mzmine-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mzmine-devel