Class ColorPool

java.lang.Object
com.diffplug.common.swt.ColorPool

public class ColorPool extends Object
Caches Colors, and automatically manages their disposal.
  • Method Details

    • getColor

      public Color getColor(RGB rgb)
      Returns a Color for the given RGB value.
    • 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.