use of org.cytoscape.util.swing.BasicCollapsiblePanel in project EnrichmentMapApp by BaderLab.
the class LegendPanel method getNodeLegendPanel.
BasicCollapsiblePanel getNodeLegendPanel() {
if (nodeLegendPanel == null) {
nodeLegendPanel = new BasicCollapsiblePanel("Nodes (Gene Sets)");
nodeLegendPanel.setCollapsed(false);
final GroupLayout layout = new GroupLayout(nodeLegendPanel.getContentPane());
nodeLegendPanel.getContentPane().setLayout(layout);
layout.setAutoCreateContainerGaps(false);
layout.setAutoCreateGaps(true);
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.CENTER, true).addComponent(getNodeColorPanel(), DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE).addComponent(getNodeShapePanel(), DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE).addComponent(getNodeChartPanel(), DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE));
layout.setVerticalGroup(layout.createSequentialGroup().addComponent(getNodeColorPanel(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(getNodeShapePanel(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(getNodeChartPanel(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
if (isAquaLAF())
nodeLegendPanel.setOpaque(false);
}
return nodeLegendPanel;
}
use of org.cytoscape.util.swing.BasicCollapsiblePanel in project EnrichmentMapApp by BaderLab.
the class LegendPanel method getEdgeLegendPanel.
BasicCollapsiblePanel getEdgeLegendPanel() {
if (edgeLegendPanel == null) {
edgeLegendPanel = new BasicCollapsiblePanel("Edges (Similarity Between Gene Sets)");
edgeLegendPanel.setCollapsed(false);
final GroupLayout layout = new GroupLayout(edgeLegendPanel.getContentPane());
edgeLegendPanel.getContentPane().setLayout(layout);
layout.setAutoCreateContainerGaps(false);
layout.setAutoCreateGaps(true);
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.CENTER, true).addComponent(getEdgeColorPanel(), DEFAULT_SIZE, DEFAULT_SIZE, Short.MAX_VALUE));
layout.setVerticalGroup(layout.createSequentialGroup().addComponent(getEdgeColorPanel(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
if (isAquaLAF())
edgeLegendPanel.setOpaque(false);
}
return edgeLegendPanel;
}
Aggregations