Package ghidra.util

Class ColorUtils.ColorBlender

  • Enclosing class:
    ColorUtils

    public static class ColorUtils.ColorBlender
    extends java.lang.Object
    Blender of colors
    • Constructor Summary

      Constructors 
      Constructor Description
      ColorBlender()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(java.awt.Color color)
      Add a color into the mixture, in a quantity proportional to its alpha value
      void clear()
      Reset the mixture
      java.awt.Color getColor​(java.awt.Color defaultColor)
      Get the color of the current mixture
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ColorBlender

        public ColorBlender()
    • Method Detail

      • add

        public void add​(java.awt.Color color)
        Add a color into the mixture, in a quantity proportional to its alpha value
        Parameters:
        color - the color to mix
      • clear

        public void clear()
        Reset the mixture
      • getColor

        public java.awt.Color getColor​(java.awt.Color defaultColor)
        Get the color of the current mixture
        Parameters:
        defaultColor - the default (background) color, if the mixture has no color
        Returns:
        the resulting color