Class GradientPanel

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class GradientPanel extends JPanel
https://stackoverflow.com/questions/45603312/smooth-gradient-background-animation-java
See Also:
  • Constructor Details

    • GradientPanel

      public GradientPanel()
  • Method Details

    • getContrastFactor

      public float getContrastFactor()
    • setContrastFactor

      public void setContrastFactor(float contrastFactor)
    • getHue

      public float getHue()
    • getSaturation

      public float getSaturation()
    • getMinValue

      public float getMinValue()
    • setMinValue

      public void setMinValue(float minValue)
    • getMaxValue

      public float getMaxValue()
    • setMaxValue

      public void setMaxValue(float maxValue)
    • setSaturation

      public void setSaturation(float saturation)
    • getBrightness

      public float getBrightness()
    • setBrightness

      public void setBrightness(float brightness)
    • setHue

      public void setHue(float hue)
    • getStep

      public float getStep()
    • setStep

      public void setStep(float step)
    • paintComponent

      public void paintComponent(Graphics g)
      Overrides:
      paintComponent in class JComponent
    • getPreferredSize

      public Dimension getPreferredSize()
      Overrides:
      getPreferredSize in class JComponent