harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Geir Magnusson Jr." <g...@pobox.com>
Subject Re: [classlib][awt] default graphics colors
Date Tue, 26 Dec 2006 21:25:09 GMT

On Dec 26, 2006, at 4:04 PM, Alexey Petrenko wrote:

> I would say that Harmony's default colors are better: black on white
> vs white on black for RI.

They may be better, but default behaviors should be the same, so  
programs run the same.

geir

>
> SY, Alexey
>
> 2006/12/26, Shipilov, Alexander D <alexander.d.shipilov@intel.com>:
>> Hi,
>>
>>  I'm interesting in default colors values in Graphics class. Let's  
>> take
>> a look on a simple code:
>>    Graphics2D g = new BufferedImage(10, 10,
>> BufferedImage.TYPE_INT_RGB).createGraphics();
>>    System.out.println("" + g.getBackground());
>>    System.out.println("" + g.getColor());
>>    System.out.println("" + g.getPaint());
>>
>>  The results on RI and Harmony are opposed:
>>   RI:
>>    java.awt.Color[r=0,g=0,b=0]
>>    java.awt.Color[r=255,g=255,b=255]
>>    java.awt.Color[r=255,g=255,b=255]
>>
>>   Harmony:
>>    java.awt.Color[r=255,g=255,b=255]
>>    java.awt.Color[r=0,g=0,b=0]
>>    java.awt.Color[r=0,g=0,b=0]
>>
>> I didn't found in spec something about these default values.  
>> Should we
>> change our default values as in RI?
>>
>> Thanks,
>> Alexander Shipilov
>>


Mime
View raw message