Search in sources :

Example 6 with HeatMapTableModel

use of org.baderlab.csplugins.enrichmentmap.view.heatmap.table.HeatMapTableModel in project EnrichmentMapApp by BaderLab.

the class HeatMapMainPanel method updateSetting_Transform.

private void updateSetting_Transform(Transform transform) {
    HeatMapTableModel tableModel = (HeatMapTableModel) table.getModel();
    if (tableModel.getTransform().isCompress() != transform.isCompress()) {
        HeatMapParams params = this.buildParams();
        EnrichmentMap map = tableModel.getEnrichmentMap();
        List<RankingOption> rankOptions = parent.getMediator().getDataSetRankOptions(map);
        SwingUtilities.invokeLater(() -> reset(map, params, rankOptions, Sets.newHashSet(unionGenes), Sets.newHashSet(interGenes)));
    } else {
        tableModel.setTransform(transform);
        // clear cached data used by the ColorRenderer
        updateSetting_ShowValues(isShowValues());
    }
    settingChanged();
}
Also used : HeatMapTableModel(org.baderlab.csplugins.enrichmentmap.view.heatmap.table.HeatMapTableModel) EnrichmentMap(org.baderlab.csplugins.enrichmentmap.model.EnrichmentMap)

Example 7 with HeatMapTableModel

use of org.baderlab.csplugins.enrichmentmap.view.heatmap.table.HeatMapTableModel in project EnrichmentMapApp by BaderLab.

the class HeatMapMainPanel method updateSetting_Operator.

private void updateSetting_Operator(Operator oper) {
    HeatMapTableModel tableModel = (HeatMapTableModel) table.getModel();
    tableModel.setGenes(getGenes(oper));
    settingChanged();
}
Also used : HeatMapTableModel(org.baderlab.csplugins.enrichmentmap.view.heatmap.table.HeatMapTableModel)

Aggregations

HeatMapTableModel (org.baderlab.csplugins.enrichmentmap.view.heatmap.table.HeatMapTableModel)7 EnrichmentMap (org.baderlab.csplugins.enrichmentmap.model.EnrichmentMap)4 Optional (java.util.Optional)2 Sets (com.google.common.collect.Sets)1 Inject (com.google.inject.Inject)1 Assisted (com.google.inject.assistedinject.Assisted)1 BorderLayout (java.awt.BorderLayout)1 Component (java.awt.Component)1 ActionEvent (java.awt.event.ActionEvent)1 ActionListener (java.awt.event.ActionListener)1 BufferedWriter (java.io.BufferedWriter)1 File (java.io.File)1 FileWriter (java.io.FileWriter)1 IOException (java.io.IOException)1 ArrayList (java.util.ArrayList)1 Arrays (java.util.Arrays)1 Comparator (java.util.Comparator)1 List (java.util.List)1 Map (java.util.Map)1 Set (java.util.Set)1