protected void createTicksCustom(List<Tick> ticks,Axis axis,double min,double max,Set<Double> tickPositions){
  Map<? extends Number,String> labelsCustom=getCustomTicks();
  if (labelsCustom != null) {
    for (    Number tickPositionWorldObj : labelsCustom.keySet()) {
      double tickPositionWorld=tickPositionWorldObj.doubleValue();
      if (tickPositionWorld < min || tickPositionWorld > max) {
        continue;
      }
      Tick tick=getTick(TickType.CUSTOM,axis,tickPositionWorld);
      ticks.add(tick);
      tickPositions.add(tickPositionWorld);
    }
  }
}

protected void createTicksCustom ( List < Tick > ticks , Axis axis , double min , double max , Set < Double > tickPositions ) { Map < ? extends Number , String > labelsCustom = getCustomTicks ( ) ; if ( labelsCustom != null ) { for ( Number tickPositionWorldObj : labelsCustom . keySet ( ) ) { double tickPositionWorld = tickPositionWorldObj . doubleValue ( ) ; if ( tickPositionWorld < min || tickPositionWorld > max ) { continue ; } Tick tick = getTick ( TickType . CUSTOM , axis , tickPositionWorld ) ; ticks . add ( tick ) ; tickPositions . add ( tickPositionWorld ) ; } } }
adds custom ticks to a list of ticks .
