return false; // but should not happen
}
try {
DataSourceCollection dsc;
if ((optionPanel != null) && optionPanel.isSubSampled()) {
dsc = new AsciiFileDataSourceCollection(f, (int) optionPanel.getSubSampleValue(), optionPanel
.getChartsetName(), f.getName().endsWith(".csv"));
} else if (optionPanel != null) {
dsc = new AsciiFileDataSourceCollection(f, optionPanel.getChartsetName(), f.getName().endsWith(".csv"));
} else {
dsc = new AsciiFileDataSourceCollection(f, f.getName().endsWith(".csv"));
}
if ((optionPanel != null) && optionPanel.isDynamic()) {
DataSourceCollectionAnimator dsca = new DataSourceCollectionAnimator(dsc);
dsca.bufferize(new DelayedBuffer(optionPanel.getBufferSize()));
dsca.setPeriod(optionPanel.getDynamicRefreshValue());