private void drawFrequencies(Graphics2D graphics){
  Stroke currentStroke=graphics.getStroke();
  long minFrequency=getMinDisplayFrequency();
  long maxFrequency=getMaxDisplayFrequency();
  int label=mLabelSizeMonitor.getLabelIncrement(graphics);
  int major=mLabelSizeMonitor.getMajorTickIncrement(graphics);
  int minor=mLabelSizeMonitor.getMinorTickIncrement(graphics);
  if (minor == 0) {
    minor=1;
  }
  long frequency=minFrequency - (minFrequency % minor);
  while (frequency < maxFrequency) {
    if (frequency % label == 0) {
      drawFrequencyLineAndLabel(graphics,frequency);
    }
 else     if (frequency % major == 0) {
      drawTickLine(graphics,frequency,true);
    }
 else {
      drawTickLine(graphics,frequency,false);
    }
    frequency+=minor;
  }
}

private void drawFrequencies ( Graphics2D graphics ) { Stroke currentStroke = graphics . getStroke ( ) ; long minFrequency = getMinDisplayFrequency ( ) ; long maxFrequency = getMaxDisplayFrequency ( ) ; int label = mLabelSizeMonitor . getLabelIncrement ( graphics ) ; int major = mLabelSizeMonitor . getMajorTickIncrement ( graphics ) ; int minor = mLabelSizeMonitor . getMinorTickIncrement ( graphics ) ; if ( minor == 0 ) { minor = 1 ; } long frequency = minFrequency - ( minFrequency % minor ) ; while ( frequency < maxFrequency ) { if ( frequency % label == 0 ) { drawFrequencyLineAndLabel ( graphics , frequency ) ; } else if ( frequency % major == 0 ) { drawTickLine ( graphics , frequency , true ) ; } else { drawTickLine ( graphics , frequency , false ) ; } frequency += minor ; } }
draws the frequency lines and labels every 10khz
