Package com.diffplug.common.swt
Class ColorPool
- java.lang.Object
-
- com.diffplug.common.swt.ColorPool
-
public class ColorPool extends java.lang.ObjectCachesColors, and automatically manages their disposal.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ColorPoolforWidget(ControlWrapper wrapper)Returns a ColorPool for the given ControlWrapper, creating one if necessary.static ColorPoolforWidget(Widget widget)Returns a ColorPool for the given Widget, creating one if necessary.ColorgetColor(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(ControlWrapper wrapper)
Returns a ColorPool for the given ControlWrapper, creating one if necessary.
-
-