use of com.revolsys.util.count.LabelCountMap in project com.revolsys.open by revolsys.
the class LabelCountMapTableModel method getLabelCountMap.
public LabelCountMap getLabelCountMap(final CharSequence label, final CharSequence countName) {
final LabelCountMap labelCountMap = getLabelCountMap(countName);
newTypePathRow(label);
return labelCountMap;
}
use of com.revolsys.util.count.LabelCountMap in project com.revolsys.open by revolsys.
the class LabelCountMapTableModel method setStatistics.
public void setStatistics(final Map<String, LabelCountMap> statisticsMap) {
try {
this.categoryLabelCountMap = new CategoryLabelCountMap(statisticsMap);
for (final Entry<String, LabelCountMap> entry : statisticsMap.entrySet()) {
final String countName = entry.getKey();
addCountNameColumn(countName);
final LabelCountMap labelCountMap = entry.getValue();
for (final String label : labelCountMap.getLabels()) {
newStatistics(countName, label);
}
}
} catch (final ConcurrentModificationException e) {
}
refresh();
}
use of com.revolsys.util.count.LabelCountMap in project com.revolsys.open by revolsys.
the class LabelCountMapTableModel method clearCounts.
public void clearCounts(final CharSequence countName) {
final LabelCountMap labelCountMap = getLabelCountMap(countName);
labelCountMap.clearCounts();
}
use of com.revolsys.util.count.LabelCountMap in project com.revolsys.open by revolsys.
the class LabelCountMapTableModel method addCount.
public void addCount(final CharSequence label, final CharSequence countName, final long count) {
if (label != null && countName != null) {
final LabelCountMap labelCountMap = getLabelCountMap(label, countName);
labelCountMap.addCount(label, count);
}
}
use of com.revolsys.util.count.LabelCountMap in project com.revolsys.open by revolsys.
the class ShapefileDirectoryWriter method setDirectory.
public void setDirectory(final File baseDirectory) {
this.directory = baseDirectory;
baseDirectory.mkdirs();
this.labelCountMap = new LabelCountMap("Write Shape " + baseDirectory.getAbsolutePath());
this.labelCountMap.connect();
}
Aggregations