Class ColorPool


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

      • 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​(ControlWrapper wrapper)
        Returns a ColorPool for the given ControlWrapper, creating one if necessary.