Search in sources :

Example 11 with AfterInjection

use of org.baderlab.csplugins.enrichmentmap.AfterInjection in project EnrichmentMapApp by BaderLab.

the class PostAnalysisKnownSignaturePanel method createContents.

@AfterInjection
private void createContents() {
    // Gene set file panel
    JPanel gmtPanel = createKnownSignatureGMTPanel();
    // Parameters collapsible panel
    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(weightPanel, DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE));
    layout.setVerticalGroup(layout.createSequentialGroup().addComponent(gmtPanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(weightPanel, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
}
Also used : JPanel(javax.swing.JPanel) GroupLayout(javax.swing.GroupLayout) AfterInjection(org.baderlab.csplugins.enrichmentmap.AfterInjection)

Example 12 with AfterInjection

use of org.baderlab.csplugins.enrichmentmap.AfterInjection in project EnrichmentMapApp by BaderLab.

the class HeatMapMainPanel method createContents.

@AfterInjection
private void createContents() {
    settingsPanel = new SettingsPopupPanel();
    settingsPanel.setDistanceConsumer(this::updateSetting_Distance);
    // must create table first
    JPanel expressionPanel = createTablePanel();
    JPanel toolbarPanel = createToolbarPanel();
    setLayout(new BorderLayout());
    add(toolbarPanel, BorderLayout.NORTH);
    add(expressionPanel, BorderLayout.CENTER);
    setOpaque(false);
}
Also used : JPanel(javax.swing.JPanel) BorderLayout(java.awt.BorderLayout) AfterInjection(org.baderlab.csplugins.enrichmentmap.AfterInjection)

Aggregations

AfterInjection (org.baderlab.csplugins.enrichmentmap.AfterInjection)12 JPanel (javax.swing.JPanel)8 GroupLayout (javax.swing.GroupLayout)6 BorderLayout (java.awt.BorderLayout)4 Dimension (java.awt.Dimension)2 JButton (javax.swing.JButton)2 GridBagLayout (java.awt.GridBagLayout)1 ActionEvent (java.awt.event.ActionEvent)1 AbstractAction (javax.swing.AbstractAction)1 JCheckBox (javax.swing.JCheckBox)1 JDialog (javax.swing.JDialog)1 AbstractFormatterFactory (javax.swing.JFormattedTextField.AbstractFormatterFactory)1 SimilarityMetric (org.baderlab.csplugins.enrichmentmap.model.EMCreationParameters.SimilarityMetric)1 EMViewControlPanel (org.baderlab.csplugins.enrichmentmap.view.control.ControlPanel.EMViewControlPanel)1 CyNetworkView (org.cytoscape.view.model.CyNetworkView)1