Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
SystemColor.createContext(..) currently overrides the same method in java.awt.Color by removing caching of the PaintContext instance. This breaks the subclassing contract and most likely is a mistake: originally, there was no caching in java.awt.Color either; at some point it was added, but not propagated to SystemColor. Also, both Color and SystemColor use 'new ColorPaintContext(value, cm)'. However, 'value' is the RGB value for Color, and an *index* into the array of RGB values for SystemColor. This doesn't look right.
|