use of javax.swing.GroupLayout in project cytoscape-impl by cytoscape.
the class AbstractChartEditor method getRangePnl.
protected JPanel getRangePnl() {
if (rangePnl == null) {
rangePnl = new JPanel();
// Transparent if Aqua
rangePnl.setOpaque(!isAquaLAF());
rangePnl.setVisible(setRange);
if (!rangePnl.isVisible())
return rangePnl;
final GroupLayout layout = new GroupLayout(rangePnl);
rangePnl.setLayout(layout);
layout.setAutoCreateContainerGaps(false);
layout.setAutoCreateGaps(!isAquaLAF());
final JSeparator sep = new JSeparator();
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING, true).addComponent(getGlobalRangeCkb()).addGroup(layout.createSequentialGroup().addComponent(getAutoRangeCkb()).addPreferredGap(ComponentPlacement.UNRELATED).addComponent(rangeMinLbl).addComponent(getRangeMinTxt()).addComponent(rangeMaxLbl).addComponent(getRangeMaxTxt()).addComponent(getRefreshRangeBtn())).addComponent(sep));
layout.setVerticalGroup(layout.createSequentialGroup().addComponent(getGlobalRangeCkb()).addGroup(layout.createParallelGroup(Alignment.CENTER, false).addComponent(getAutoRangeCkb(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(rangeMinLbl).addComponent(getRangeMinTxt(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(rangeMaxLbl).addComponent(getRangeMaxTxt(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(getRefreshRangeBtn(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE)).addComponent(sep, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
}
return rangePnl;
}
use of javax.swing.GroupLayout in project cytoscape-impl by cytoscape.
the class AbstractChartEditor method getOrientationPnl.
protected JPanel getOrientationPnl() {
if (orientationPnl == null) {
orientationPnl = new JPanel();
// Transparent if Aqua
orientationPnl.setOpaque(!isAquaLAF());
orientationPnl.setVisible(setOrientation);
if (!orientationPnl.isVisible())
return orientationPnl;
final GroupLayout layout = new GroupLayout(orientationPnl);
orientationPnl.setLayout(layout);
layout.setAutoCreateContainerGaps(false);
layout.setAutoCreateGaps(!isAquaLAF());
final JSeparator sep = new JSeparator();
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING, true).addGroup(layout.createSequentialGroup().addComponent(getVerticalRd()).addComponent(getHorizontalRd())).addComponent(sep));
layout.setVerticalGroup(layout.createSequentialGroup().addGroup(layout.createParallelGroup(Alignment.CENTER, false).addComponent(getVerticalRd()).addComponent(getHorizontalRd())).addComponent(sep, PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
}
return orientationPnl;
}
use of javax.swing.GroupLayout in project cytoscape-impl by cytoscape.
the class AbstractChartEditor method getBasicOptionsPnl.
protected JPanel getBasicOptionsPnl() {
if (basicOptionsPnl == null) {
basicOptionsPnl = new JPanel();
// Transparent if Aqua
basicOptionsPnl.setOpaque(!isAquaLAF());
final GroupLayout layout = new GroupLayout(basicOptionsPnl);
basicOptionsPnl.setLayout(layout);
layout.setAutoCreateContainerGaps(true);
layout.setAutoCreateGaps(!isAquaLAF());
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING, true).addComponent(getOtherBasicOptionsPnl()).addComponent(getDataPnl()).addComponent(getRangePnl()));
layout.setVerticalGroup(layout.createSequentialGroup().addComponent(getOtherBasicOptionsPnl(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(getDataPnl(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE).addComponent(getRangePnl(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
}
return basicOptionsPnl;
}
use of javax.swing.GroupLayout in project cytoscape-impl by cytoscape.
the class AbstractChartEditor method getAdvancedOptionsPnl.
protected JPanel getAdvancedOptionsPnl() {
if (advancedOptionsPnl == null) {
advancedOptionsPnl = new JPanel();
// Transparent if Aqua
advancedOptionsPnl.setOpaque(!isAquaLAF());
final GroupLayout layout = new GroupLayout(advancedOptionsPnl);
advancedOptionsPnl.setLayout(layout);
layout.setAutoCreateContainerGaps(true);
layout.setAutoCreateGaps(!isAquaLAF());
layout.setHorizontalGroup(layout.createParallelGroup(Alignment.LEADING, true).addComponent(getColorSchemeEditor()).addComponent(getLabelsPnl()).addComponent(getOrientationPnl()).addComponent(getAxesPnl()).addComponent(getBorderPnl()).addComponent(getOtherAdvancedOptionsPnl()));
layout.setVerticalGroup(layout.createSequentialGroup().addComponent(getColorSchemeEditor()).addComponent(getLabelsPnl()).addComponent(getOrientationPnl()).addComponent(getAxesPnl()).addComponent(getBorderPnl()).addComponent(getOtherAdvancedOptionsPnl()));
}
return advancedOptionsPnl;
}
use of javax.swing.GroupLayout in project cytoscape-impl by cytoscape.
the class LinearGradientEditor method getOtherOptionsPnl.
@Override
protected JPanel getOtherOptionsPnl() {
final JPanel p = super.getOtherOptionsPnl();
p.setVisible(true);
final GroupLayout layout = new GroupLayout(p);
p.setLayout(layout);
layout.setAutoCreateContainerGaps(false);
layout.setAutoCreateGaps(true);
layout.setHorizontalGroup(layout.createSequentialGroup().addComponent(angleLbl).addComponent(getAngleCmb(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
layout.setVerticalGroup(layout.createParallelGroup(Alignment.CENTER, false).addComponent(angleLbl).addComponent(getAngleCmb(), PREFERRED_SIZE, DEFAULT_SIZE, PREFERRED_SIZE));
return p;
}
Aggregations