use of org.baderlab.csplugins.enrichmentmap.AfterInjection in project EnrichmentMapApp by BaderLab.
the class PostAnalysisInputPanel method createContent.
@AfterInjection
private void createContent() {
JPanel analysisTypePanel = createAnalysisTypePanel();
JPanel namePanel = createNamePanel();
final GroupLayout layout = new GroupLayout(this);
setLayout(layout);
layout.setAutoCreateContainerGaps(false);
layout.setAutoCreateGaps(false);
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.CENTER, true).addComponent(analysisTypePanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE).addComponent(namePanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE).addComponent(getUserInputScrollPane(), DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE));
layout.setVerticalGroup(layout.createSequentialGroup().addComponent(analysisTypePanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(namePanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(getUserInputScrollPane(), DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE));
if (LookAndFeelUtil.isAquaLAF())
setOpaque(false);
initialize();
}
use of org.baderlab.csplugins.enrichmentmap.AfterInjection in project EnrichmentMapApp by BaderLab.
the class CutoffPropertiesPanel method createContents.
@AfterInjection
public void createContents() {
cutoffValues = new EnumMap<>(SimilarityMetric.class);
cutoffValues.put(SimilarityMetric.JACCARD, propertyManager.getDefaultCutOff(SimilarityMetric.JACCARD));
cutoffValues.put(SimilarityMetric.OVERLAP, propertyManager.getDefaultCutOff(SimilarityMetric.OVERLAP));
cutoffValues.put(SimilarityMetric.COMBINED, propertyManager.getDefaultCutOff(SimilarityMetric.COMBINED));
setBorder(LookAndFeelUtil.createPanelBorder());
JPanel filterNodesPanel = createFilterNodesPanel();
JPanel filterEdgesPanel = createFilterEdgesPanel();
notationCheckBox = new JCheckBox("Scientific Notation");
notationCheckBox.addActionListener(e -> {
boolean scientific = notationCheckBox.isSelected();
AbstractFormatterFactory factory = getFormatterFactory(scientific);
pvalueText.setFormatterFactory(factory);
qvalueText.setFormatterFactory(factory);
similarityCutoffText.setFormatterFactory(factory);
});
advancedCheckBox = new JCheckBox("Show Advanced Options");
advancedCheckBox.addActionListener(e -> showAdvancedOptions(advancedCheckBox.isSelected()));
SwingUtil.makeSmall(notationCheckBox, advancedCheckBox);
final GroupLayout layout = new GroupLayout(this);
setLayout(layout);
layout.setAutoCreateContainerGaps(true);
layout.setAutoCreateGaps(true);
layout.setHorizontalGroup(layout.createParallelGroup().addGroup(layout.createSequentialGroup().addComponent(filterNodesPanel).addComponent(filterEdgesPanel)).addGroup(layout.createSequentialGroup().addGap(0, 0, Short.MAX_VALUE).addComponent(notationCheckBox).addGap(10).addComponent(advancedCheckBox)));
layout.setVerticalGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup().addComponent(filterNodesPanel).addComponent(filterEdgesPanel)).addGroup(layout.createParallelGroup().addComponent(notationCheckBox).addComponent(advancedCheckBox)));
}
use of org.baderlab.csplugins.enrichmentmap.AfterInjection in project EnrichmentMapApp by BaderLab.
the class EditCommonPanel method createContents.
@AfterInjection
private void createContents() {
gmtText = pathTextFactory.create("GMT File:", FileBrowser.Filter.GMT);
expressionsText = pathTextFactory.create("Expressions:", FileBrowser.Filter.EXPRESSION);
GroupLayout layout = new GroupLayout(this);
setLayout(layout);
layout.setAutoCreateContainerGaps(true);
layout.setAutoCreateGaps(true);
layout.setHorizontalGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(Alignment.TRAILING).addComponent(gmtText.getLabel()).addComponent(expressionsText.getLabel())).addGroup(layout.createParallelGroup(Alignment.LEADING, true).addComponent(gmtText.getTextField()).addComponent(expressionsText.getTextField())).addGroup(layout.createParallelGroup().addComponent(gmtText.getBrowseButton()).addComponent(expressionsText.getBrowseButton())));
layout.setVerticalGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(gmtText.getLabel()).addComponent(gmtText.getTextField()).addComponent(gmtText.getBrowseButton())).addGroup(layout.createParallelGroup(Alignment.BASELINE).addComponent(expressionsText.getLabel()).addComponent(expressionsText.getTextField()).addComponent(expressionsText.getBrowseButton())));
if (LookAndFeelUtil.isAquaLAF())
setOpaque(false);
}
use of org.baderlab.csplugins.enrichmentmap.AfterInjection in project EnrichmentMapApp by BaderLab.
the class ErrorMessageDialog method createContents.
@AfterInjection
private void createContents() {
messagePanel = new JPanel(new GridBagLayout());
JPanel buttonPanel = createButtonPanel();
messagePanel.setBorder(BorderFactory.createEmptyBorder(8, 8, 8, 8));
buttonPanel.setBorder(BorderFactory.createMatteBorder(1, 0, 0, 0, UIManager.getColor("Separator.foreground")));
JPanel panel = new JPanel(new BorderLayout());
panel.add(messagePanel, BorderLayout.CENTER);
panel.add(buttonPanel, BorderLayout.SOUTH);
setContentPane(panel);
}
use of org.baderlab.csplugins.enrichmentmap.AfterInjection in project EnrichmentMapApp by BaderLab.
the class PostAnalysisSignatureDiscoveryPanel method createContents.
@AfterInjection
private void createContents() {
JPanel gmtPanel = createSignatureDiscoveryGMTPanel();
JPanel sigGenesetsPanel = createSignatureGenesetsPanel();
weightPanel = new PostAnalysisWeightPanel(serviceRegistrar);
final GroupLayout layout = new GroupLayout(this);
setLayout(layout);
layout.setAutoCreateContainerGaps(false);
layout.setAutoCreateGaps(false);
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.CENTER, true).addComponent(gmtPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE).addComponent(sigGenesetsPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE).addComponent(weightPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE));
layout.setVerticalGroup(layout.createSequentialGroup().addComponent(gmtPanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(sigGenesetsPanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(weightPanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
}
Aggregations