I thought about possible solutions to support for formatting units in OpenJUMP and I am working on some code to implement on one of these solutions. The solution I am currently working on builds on the concepts already embodied in OpenJUMP's existing code and ties in the Java I18N system.
Basically the code in the system will serve a single purpose: Providing client code with a String that has been properly formatted for display to the user based on a unit system for a particular Locale. (Each Locale can have more than one unit system associated with it. For example: The en_US locale might have a metric and imperial distance unit systems.) I will release the code when I have completed the Javadoc and unit testing of the two (2) main interfaces, MeasurmentFormatInfo and UnitSystem. I will release the following unit systems for the en_US locale as an examples: Survey Foot and Mile Distance Unit System Inches, Foot, and Mile Distance Unit System Metic Distance Unit System Metric Area Unit System Square Feet and Acres Area Unit System Decimal Degrees Angle and Direction Unit System I will then begin to incoporate this Unit System into OpenJUMP if I get everyone's approval. I know we still need to talk about how this will be incoporated into the program. The Sunburned Surveyor P.S. - My solution does not directly support conversions between unit systems. It is instead focused on formatting measurement values from different user systems. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Register now and save $200. Hurry, offer ends at 11:59 p.m., Monday, April 7! Use priority code J8TLD2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone _______________________________________________ Jump-pilot-devel mailing list Jump-pilot-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jump-pilot-devel