Class SwingColor

java.lang.Object
java.awt.Color
com.jformdesigner.model.SwingColor
All Implemented Interfaces:
SwingResource, Paint, Transparency, Serializable

public class SwingColor extends Color implements SwingResource
Used to specify colors from the Swing color palette. Invokes UIManager.getColor(key) to get the real color.
See Also:
  • Constructor Details

    • 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 Details

    • 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