Yeah, it would come in handy just for general purpose use. I was planning an API where I simply needed to return a width and height in double precision, and obviously would prefer to use standard classes. In this case, it was for layout of graphic elements, but in user space, and I needed to stay resolution independent (for printing). Essentially I had the equivelant of AWT's getPreferredSize().
Not a showstopper, but I thought they might be worthy of inclusion, even for the sake of completeness. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, 15 January 2008 6:38 AM To: LOUD, Ben Cc: [email protected] Subject: Re: [OpenJDK 2D-Dev] 4189647 - Dimension2D.Float/.Double Hi Ben, Since it was only used for doing component layouts (in integer space), it wasn't really needed anywhere, though I suppose that this begs the question as to why Dimension2D was created in the first place. (scratches head, doesn't remember). Do you have a use case for it now? ...jim LOUD, Ben wrote: > I was just wondering, is there any reason why there are no Float and Double subclasses of Dimension2D? I'm suprised such a simple thing was never included. > > Thats all. Thanks! > > > "Warning: > The information contained in this email and any attached files is > confidential to BAE Systems Australia. If you are not the intended > recipient, any use, disclosure or copying of this email or any > attachments is expressly prohibited. If you have received this email > in error, please notify us immediately. VIRUS: Every care has been > taken to ensure this email and its attachments are virus free, > however, any loss or damage incurred in using this email is not the > sender's responsibility. It is your responsibility to ensure virus > checks are completed before installing any data sent in this email to > your computer." > > "Warning: The information contained in this email and any attached files is confidential to BAE Systems Australia. If you are not the intended recipient, any use, disclosure or copying of this email or any attachments is expressly prohibited. If you have received this email in error, please notify us immediately. VIRUS: Every care has been taken to ensure this email and its attachments are virus free, however, any loss or damage incurred in using this email is not the sender's responsibility. It is your responsibility to ensure virus checks are completed before installing any data sent in this email to your computer."
