Class WavePainter

java.lang.Object
com.intellij.util.ui.WavePainter

public class WavePainter extends Object
Draws a 'wavy' line of 1-pixel amplitude. Instances are cached for performance reasons.

This class is not thread-safe, it's supposed to be used in EDT only.

  • Method Details

    • paint

      public void paint(Graphics2D g, int xStart, int xEnd, int y)
      Paints a wave in given coordinate range. y defines the lower boundary of painted wave.
    • forColor

      public static WavePainter forColor(Color color)