private void setTicks ( XAxis xAxis , YAxis yAxis , boolean showXLabel , boolean showYLabel ) { boolean isHorizontal = chart . getType ( ) . isHorizontal ( ) ; if ( ( ! showXLabel && ! isHorizontal ) || ( ! showYLabel && isHorizontal ) ) { xAxis . setTickHeight ( 0 ) ; } if ( ( ! showYLabel && ! isHorizontal ) || ( ! showXLabel && isHorizontal ) ) { yAxis . setTickLength ( 0 ) ; } }
hide ticks if we do not show labels