Class Colors

    • Field Detail

      • LOGID

        private static final LogIDs LOGID
      • instance

        private static Colors instance
      • 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
      • 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
      • class_mon

        private static final AEMonitor 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
      • display

        private org.eclipse.swt.widgets.Display display
    • Constructor Detail

      • Colors

        private Colors()
    • Method Detail

      • 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

        public static Colors getInstance()
      • disposeInstance

        public static void disposeInstance()
      • dipose

        private void dipose()
      • addColorsChangedListener

        public void addColorsChangedListener​(ParameterListener l)
      • removeColorsChangedListener

        public void removeColorsChangedListener​(ParameterListener l)
      • parameterChanged

        public void parameterChanged​(java.lang.String parameterName)
        Description copied from interface: ParameterListener
        Called, 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:
        parameterChanged in interface ParameterListener
        Parameters:
        parameterName - the name of the parameter that has changed
      • getSystemColor

        public static org.eclipse.swt.graphics.Color getSystemColor​(org.eclipse.swt.graphics.Device d,
                                                                    int id)
      • getFadedColor

        public org.eclipse.swt.graphics.Color getFadedColor​(org.eclipse.swt.graphics.Color c)
      • 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)