Package com.diffplug.common.swt
Class ColorPool
java.lang.Object
com.diffplug.common.swt.ColorPool
Caches
Color
s, and automatically manages their disposal.-
Method Summary
Modifier and TypeMethodDescriptionstatic ColorPool
forWidget
(com.diffplug.common.swt.ControlWrapper wrapper) Returns a ColorPool for the given ControlWrapper, creating one if necessary.static ColorPool
Returns a ColorPool for the given Widget, creating one if necessary.Returns a Color for the given RGB value.
-
Method Details
-
getColor
Returns a Color for the given RGB value. -
forWidget
Returns a ColorPool for the given Widget, creating one if necessary. -
forWidget
Returns a ColorPool for the given ControlWrapper, creating one if necessary.
-