Package com.diffplug.common.swt
Class ColorPool
- java.lang.Object
-
- com.diffplug.common.swt.ColorPool
-
public class ColorPool extends java.lang.Object
CachesColor
s, and automatically manages their disposal.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorPool
forWidget(com.diffplug.common.swt.ControlWrapper wrapper)
Returns a ColorPool for the given ControlWrapper, creating one if necessary.static ColorPool
forWidget(Widget widget)
Returns a ColorPool for the given Widget, creating one if necessary.Color
getColor(RGB rgb)
Returns a Color for the given RGB value.
-
-
-
Method Detail
-
forWidget
public static ColorPool forWidget(Widget widget)
Returns a ColorPool for the given Widget, creating one if necessary.
-
forWidget
public static ColorPool forWidget(com.diffplug.common.swt.ControlWrapper wrapper)
Returns a ColorPool for the given ControlWrapper, creating one if necessary.
-
-