code: protected void componentWasResized(int newTop, int newLeft, int newWidth, int newHeight)
      {
  		rampDownValue = (float)getDesiredFPS()/2000F;
  		maxPeakLevelRampDownDelay = rampDownValue/50F;
  		
  		if (newTop<0 || newLeft<0 || newWidth<0 || newHeight<0) return;
  
  		myBottom = newTop + newHeight;
  		myHalfHeight = (float)newHeight/2f;
  		barWidth = newWidth/bands;
  
  		color = new Color[newHeight+1];
  		for (int i=0; i<=newHeight; i++)
  		{
  			int color1 = i*255/newHeight;
  			int color2 = 255-color1;
  			color[i] = new Color(color1, color2, 0);
  		}
  		SKMax = 1024;
  		SKcolor = new Color[SKMax];
  		for (int i=0; i<256; i++)
  		{
  			SKcolor[i] = new Color(0, 0, i);
  		}
  		for (int i=256; i<512; i++)
  		{
  			SKcolor[i] = new Color(0, i-256, 511-i);
  		}
  		for (int i=512; i<768; i++)
  		{
  			SKcolor[i] = new Color(i-512, 767-i, 0);
  		}
  		for (int i=768; i<1024; i++)
  		{
  			SKcolor[i] = new Color(255, i-768, 0);
  		}
      }
docs: Is called when the component is resized
  @see de.quippy.javamod.main.gui.components.MeterPanelBase#componentWasResized()