cdc.perfs.ui.swing.SourcesTableModel Maven / Gradle / Ivy
package cdc.perfs.ui.swing;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.concurrent.CopyOnWriteArrayList;
import javax.swing.table.AbstractTableModel;
import cdc.perfs.api.Source;
import cdc.perfs.api.SourceLevel;
import cdc.perfs.core.Context;
import cdc.perfs.core.Environment;
import cdc.perfs.core.EnvironmentKind;
import cdc.perfs.core.EnvironmentListener;
import cdc.perfs.core.Measure;
import cdc.perfs.ui.SourceDisplay;
/**
* Implementation of a table model for sources used by an environment.
*
* Columns:
*
* - Source.
*
- Max level of generated measures for the source.
*
- Display of the source.
*
*
* @author Damien Carbonne
*
*/
final class SourcesTableModel extends AbstractTableModel {
private static final long serialVersionUID = 1L;
private final transient Environment environment;
private static final String[] COLUMN_NAMES = { "Source", "Max Level", "Display", "Measures" };
private static final int COLUMN_SOURCE = 0;
private static final int COLUMN_MAX_LEVEL = 1;
private static final int COLUMN_DISPLAY = 2;
private static final int COLUMN_MEASURES = 3;
final transient List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy