コード例 #1
0
  private void populateInputVariableComboBox() {
    inputVariableComboBox.setEnabled(false);

    inputVariableComboBox.setDecomposition(net.getNetModel().getDecomposition());

    if (inputVariableComboBox.getItemCount() > 0) {
      inputVariableComboBox.setEnabled(true);
      inputVariableQueryButton.setEnabled(true);
    } else {
      inputVariableComboBox.setEnabled(false);
      inputVariableQueryButton.setEnabled(false);
    }
  }
コード例 #2
0
 public void actionPerformed(ActionEvent event) {
   final NetGraph graph = getGraph();
   if (graph != null) {
     NetCellUtilities.alignCellsAlongVerticalCentre(graph, graph.getSelectionCells());
   }
 }