Class SwingColor

    • Constructor Detail

      • SwingColor

        public SwingColor​(String key)
        Constructs a color from the Swing color palette.
        Parameters:
        key - The name of the Swing color.
      • SwingColor

        public SwingColor​(String key,
                          Color color)
        For internal use only.
    • Method Detail

      • getKey

        public String getKey()
        Returns The name of the Swing color.
      • equals

        public boolean equals​(Object obj)
        Determines whether another object is equal to this object.
        Overrides:
        equals in class Color
      • hashCode

        public int hashCode()
        Returns the hash code for this object.
        Overrides:
        hashCode in class Color
      • toString

        public String toString()
        Returns a string representation of the object.
        Overrides:
        toString in class Color