Package com.biglybt.ui.swt.utils
Class ColorCache
java.lang.Object
com.biglybt.ui.swt.utils.ColorCache
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final HashSet<org.eclipse.swt.graphics.Color>
private static final boolean
private static boolean
private static final int
private static final String[]
private static TimerEventPeriodic
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
static void
dispose()
private static void
ensureMapColorsInitialized
(org.eclipse.swt.graphics.Device device) static org.eclipse.swt.graphics.Color
getColor
(org.eclipse.swt.graphics.Device device, float[] hsb) static org.eclipse.swt.graphics.Color
getColor
(org.eclipse.swt.graphics.Device device, int[] rgb) static org.eclipse.swt.graphics.Color
getColor
(org.eclipse.swt.graphics.Device device, int red, int green, int blue) static org.eclipse.swt.graphics.Color
private static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
getColor
(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.RGB rgb) static org.eclipse.swt.graphics.Color
static org.eclipse.swt.graphics.Color
getSchemedColor
(org.eclipse.swt.graphics.Device device, int red, int green, int blue) static org.eclipse.swt.graphics.Color
getSchemedColor
(org.eclipse.swt.graphics.Device device, String value) static void
reset()
-
Field Details
-
DEBUG
private static final boolean DEBUG -
mapColors
-
colorsToDispose
-
SYSTEMCOLOR_INDEXSTART
private static final int SYSTEMCOLOR_INDEXSTART- See Also:
-
systemColorNames
-
timerColorCacheChecker
-
forceNoColor
private static boolean forceNoColor
-
-
Constructor Details
-
ColorCache
public ColorCache()
-
-
Method Details
-
reset
public static void reset() -
dispose
public static void dispose() -
getSchemedColor
public static org.eclipse.swt.graphics.Color getSchemedColor(org.eclipse.swt.graphics.Device device, int red, int green, int blue) -
getColor
public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, int red, int green, int blue) -
ensureMapColorsInitialized
private static void ensureMapColorsInitialized(org.eclipse.swt.graphics.Device device) -
getColor
public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, String value) -
getSchemedColor
public static org.eclipse.swt.graphics.Color getSchemedColor(org.eclipse.swt.graphics.Device device, String value) -
getColor
private static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, String c_value, boolean useScheme) -
addColor
-
getColor
public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, int[] rgb) - Since:
- 3.0.4.3
-
getRandomColor
public static org.eclipse.swt.graphics.Color getRandomColor() -
getColor
public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, float[] hsb) - Since:
- 3.1.1.1
-
getColor
public static org.eclipse.swt.graphics.Color getColor(org.eclipse.swt.graphics.Device device, org.eclipse.swt.graphics.RGB rgb) - Parameters:
device
-rgb
-- Returns:
- Since:
- 3.1.1.1
-