Class Colors
java.lang.Object
com.biglybt.ui.swt.mainwindow.Colors
- All Implemented Interfaces:
ParameterListener
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final org.eclipse.swt.graphics.Color[]static org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Color[]static final intstatic final intstatic final intstatic final intstatic final org.eclipse.swt.graphics.Color[]private static final AEMonitorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorprivate final ParameterListenerstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic intstatic floatstatic floatprivate org.eclipse.swt.widgets.Displaystatic org.eclipse.swt.graphics.Color[]static final intstatic final intstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorprivate static AEDiagnosticsEvidenceGeneratorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorprivate static Colorsstatic org.eclipse.swt.graphics.Color(package private) static List<ParameterListener> private static final LogIDsstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Colorstatic org.eclipse.swt.graphics.Color -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprivate voidvoidprivate voidprivate voidprivate voidprivate voidprivate voidallocateDynamicColors(boolean first_time) private voidprivate voiddipose()static voidorg.eclipse.swt.graphics.RGBgetAlternativeRowColor(org.eclipse.swt.graphics.Color normal) static Colorsorg.eclipse.swt.graphics.ColorgetLighterColor(org.eclipse.swt.graphics.Color c, int percent) org.eclipse.swt.graphics.ColorgetReadableColor(org.eclipse.swt.graphics.Color forBG) org.eclipse.swt.graphics.ColorgetSlightlyFadedColor(org.eclipse.swt.graphics.Color c) static org.eclipse.swt.graphics.ColorgetSystemColor(org.eclipse.swt.graphics.Device d, int id) static org.eclipse.swt.graphics.ColorgetWindowsDarkSystemColor(org.eclipse.swt.graphics.Device d, int id) static booleanisBlackTextReadable(org.eclipse.swt.graphics.Color forBG) static booleanisColorContrastOk(org.eclipse.swt.graphics.Color color1, org.eclipse.swt.graphics.Color color2) voidparameterChanged(String parameterName) Called, when a parameter has changed.void
-
Field Details
-
LOGID
-
instance
-
BLUES_LIGHTEST
public static final int BLUES_LIGHTEST- See Also:
-
BLUES_DARKEST
public static final int BLUES_DARKEST- See Also:
-
BLUES_MIDLIGHT
public static final int BLUES_MIDLIGHT- See Also:
-
BLUES_MIDDARK
public static final int BLUES_MIDDARK- See Also:
-
FADED_LIGHTEST
public static final int FADED_LIGHTEST- See Also:
-
FADED_DARKEST
public static final int FADED_DARKEST- See Also:
-
bluesFixed
public static final org.eclipse.swt.graphics.Color[] bluesFixed -
blues
public static org.eclipse.swt.graphics.Color[] blues -
faded
public static org.eclipse.swt.graphics.Color[] faded -
colorProgressBar
public static org.eclipse.swt.graphics.Color colorProgressBar -
colorInverse
public static org.eclipse.swt.graphics.Color colorInverse -
colorShiftLeft
public static org.eclipse.swt.graphics.Color colorShiftLeft -
colorShiftRight
public static org.eclipse.swt.graphics.Color colorShiftRight -
colorError
public static org.eclipse.swt.graphics.Color colorError -
colorErrorBG
public static org.eclipse.swt.graphics.Color colorErrorBG -
colorAltRowDefault
public static org.eclipse.swt.graphics.Color colorAltRowDefault -
colorAltRow
public static org.eclipse.swt.graphics.Color colorAltRow -
colorWarning
public static org.eclipse.swt.graphics.Color colorWarning -
black
public static org.eclipse.swt.graphics.Color black -
light_grey
public static org.eclipse.swt.graphics.Color light_grey -
dark_grey
public static org.eclipse.swt.graphics.Color dark_grey -
blue
public static org.eclipse.swt.graphics.Color blue -
fadedBlue
public static org.eclipse.swt.graphics.Color fadedBlue -
green
public static org.eclipse.swt.graphics.Color green -
fadedGreen
public static org.eclipse.swt.graphics.Color fadedGreen -
grey
public static org.eclipse.swt.graphics.Color grey -
red
public static org.eclipse.swt.graphics.Color red -
fadedRed
public static org.eclipse.swt.graphics.Color fadedRed -
maroon
public static org.eclipse.swt.graphics.Color maroon -
yellow
public static org.eclipse.swt.graphics.Color yellow -
fadedYellow
public static org.eclipse.swt.graphics.Color fadedYellow -
white
public static org.eclipse.swt.graphics.Color white -
background
public static org.eclipse.swt.graphics.Color background -
red_ConsoleView
public static org.eclipse.swt.graphics.Color red_ConsoleView -
cyan
public static org.eclipse.swt.graphics.Color cyan -
orange
public static org.eclipse.swt.graphics.Color orange -
class_mon
-
diffHue
public static int diffHue -
diffSatPct
public static float diffSatPct -
diffLumPct
public static float diffLumPct -
alternatingColors
public static final org.eclipse.swt.graphics.Color[] alternatingColors -
listeners
-
genColorCache
-
configListener
-
display
private org.eclipse.swt.widgets.Display display
-
-
Constructor Details
-
Colors
private Colors()
-
-
Method Details
-
allocateBlues
private void allocateBlues() -
allocateColorProgressBar
private void allocateColorProgressBar() -
allocateColorErrorBG
private void allocateColorErrorBG() -
allocateColorError
private void allocateColorError() -
allocateColorWarning
private void allocateColorWarning() -
getAlternativeRowColor
public org.eclipse.swt.graphics.RGB getAlternativeRowColor(org.eclipse.swt.graphics.Color normal) -
allocateColorAltRow
public void allocateColorAltRow() -
allocateDynamicColors
private void allocateDynamicColors(boolean first_time) -
allocateNonDynamicColors
private void allocateNonDynamicColors() -
getInstance
-
disposeInstance
public static void disposeInstance() -
dipose
private void dipose() -
addColorsChangedListener
-
removeColorsChangedListener
-
parameterChanged
Description copied from interface:ParameterListenerCalled, when a parameter has changed. The listener could only react if the parameter name is relevant. Or the listener can just read all parameters again.- Specified by:
parameterChangedin interfaceParameterListener- Parameters:
parameterName- the name of the parameter that has changed
-
getWindowsDarkSystemColor
public static org.eclipse.swt.graphics.Color getWindowsDarkSystemColor(org.eclipse.swt.graphics.Device d, int id) -
getSystemColor
public static org.eclipse.swt.graphics.Color getSystemColor(org.eclipse.swt.graphics.Device d, int id) -
getSlightlyFadedColor
public org.eclipse.swt.graphics.Color getSlightlyFadedColor(org.eclipse.swt.graphics.Color c) -
getLighterColor
public org.eclipse.swt.graphics.Color getLighterColor(org.eclipse.swt.graphics.Color c, int percent) -
isBlackTextReadable
public static boolean isBlackTextReadable(org.eclipse.swt.graphics.Color forBG) -
getReadableColor
public org.eclipse.swt.graphics.Color getReadableColor(org.eclipse.swt.graphics.Color forBG) -
isColorContrastOk
public static boolean isColorContrastOk(org.eclipse.swt.graphics.Color color1, org.eclipse.swt.graphics.Color color2)
-