Class ColorComponent

    • Field Detail

      • color

        protected Color color
    • Constructor Detail

      • ColorComponent

        public ColorComponent()
    • Method Detail

      • addChangeListener

        public void addChangeListener(ChangeListener l)
        Add a ChangeListener to be notified when setColor() is called.
      • removeChangeListener

        public void removeChangeListener(ChangeListener l)
        Remove a ChangeListener.
      • getColor

        public Color getColor()
        Returns the current color.
        Returns:
        the current color.
      • fireChangeListeners

        protected void fireChangeListeners()
      • setColor

        public boolean setColor(Color c)
        Defines the current color.
        Parameters:
        c - the new color.
        Returns:
        true if a change occurred. Or false if the argument was already the current color and no listeners were notified.