public void updateForPacketNumOrBitNum() {
plot.setDataset(model.getDatasetPer100());
plot.setDataset(1, model.getDatasetPer1000());
TimeSeriesCollection dataset = model.getDatasetPer100();
boolean shapeVisible = false;
for (TimeSeriesEx<StatisticsData> timeSeriesEx : (List<TimeSeriesEx<StatisticsData>>) dataset.getSeries()) {
StatisticsData data = timeSeriesEx.getUserObject();
int seriesIndex = dataset.indexOf(timeSeriesEx);
rendererPer100.setSeriesPaint(seriesIndex, data.getColor());
rendererPer100.setSeriesVisible(seriesIndex, model.isPer100());
rendererPer100.setSeriesLinesVisible(seriesIndex, data.isShow());
shapeVisible = data.isShow() && timeSeriesEx.getItemCount() == 1;
rendererPer100.setSeriesShapesVisible(seriesIndex, shapeVisible);
}
dataset = model.getDatasetPer1000();
for (TimeSeriesEx<StatisticsData> timeSeriesEx : (List<TimeSeriesEx<StatisticsData>>) dataset.getSeries()) {
StatisticsData data = timeSeriesEx.getUserObject();
int seriesIndex = dataset.indexOf(timeSeriesEx);
rendererPer1000.setSeriesPaint(seriesIndex, data.getColor());
rendererPer1000.setSeriesVisible(seriesIndex, !model.isPer100());
rendererPer1000.setSeriesLinesVisible(seriesIndex, data.isShow());
shapeVisible = data.isShow() && timeSeriesEx.getItemCount() == 1;
rendererPer1000.setSeriesShapesVisible(seriesIndex, shapeVisible);