GephiPluginsVis/StatisticsPluginExample/src/org/gephi/plugins/example/statistics/AverageEuclideanDistancePanel.java
/** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
This method is called from within the constructor to
initialize the form.
WARNING: Do NOT modify this code. The content of this method is
always regenerated by the Form Editor.
This method is called from within the constructor to initialize the form . WARNING : Do NOT modify this code . The content of this method is always regenerated by the Form Editor .
@SuppressWarnings("unchecked")
    private void initComponents() {
        buttonGroup = new javax.swing.ButtonGroup();
        jXHeader1 = new org.jdesktop.swingx.JXHeader();
        allNodesRadio = new javax.swing.JRadioButton();
        justConnectionsRadio = new javax.swing.JRadioButton();
        jXHeader1.setDescription("Average euclidean distance to other nodes. Higher values are farther apart from other nodes. Useful to remove outliers after a layout execution."); 
        jXHeader1.setTitle("Average Euclidean Distance"); 
        buttonGroup.add(allNodesRadio);
        allNodesRadio.setText("Distance to all nodes"); 
        buttonGroup.add(justConnectionsRadio);
        justConnectionsRadio.setText("Just connections"); 
        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jXHeader1, javax.swing.GroupLayout.DEFAULT_SIZE, 536, Short.MAX_VALUE)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(allNodesRadio)
                .addContainerGap(354, Short.MAX_VALUE))
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(justConnectionsRadio)
                .addContainerGap(382, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jXHeader1, javax.swing.GroupLayout.PREFERRED_SIZE, 80, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(allNodesRadio)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addComponent(justConnectionsRadio)
                .addContainerGap(187, Short.MAX_VALUE))
        );
    }
@ SuppressWarnings ( "unchecked" ) private void initComponents ( ) { buttonGroup = new javax . swing . ButtonGroup ( ) ; jXHeader1 = new org . jdesktop . swingx . JXHeader ( ) ; allNodesRadio = new javax . swing . JRadioButton ( ) ; justConnectionsRadio = new javax . swing . JRadioButton ( ) ; jXHeader1 . setDescription ( "Average euclidean distance to other nodes. Higher values are farther apart from other nodes. Useful to remove outliers after a layout execution." ) ; jXHeader1 . setTitle ( "Average Euclidean Distance" ) ; buttonGroup . add ( allNodesRadio ) ; allNodesRadio . setText ( "Distance to all nodes" ) ; buttonGroup . add ( justConnectionsRadio ) ; justConnectionsRadio . setText ( "Just connections" ) ; javax . swing . GroupLayout layout = new javax . swing . GroupLayout ( this ) ; this . setLayout ( layout ) ; layout . setHorizontalGroup ( layout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addComponent ( jXHeader1 , javax . swing . GroupLayout . DEFAULT_SIZE , 536 , Short . MAX_VALUE ) . addGroup ( layout . createSequentialGroup ( ) . addContainerGap ( ) . addComponent ( allNodesRadio ) . addContainerGap ( 354 , Short . MAX_VALUE ) ) . addGroup ( layout . createSequentialGroup ( ) . addContainerGap ( ) . addComponent ( justConnectionsRadio ) . addContainerGap ( 382 , Short . MAX_VALUE ) ) ) ; layout . setVerticalGroup ( layout . createParallelGroup ( javax . swing . GroupLayout . Alignment . LEADING ) . addGroup ( layout . createSequentialGroup ( ) . addComponent ( jXHeader1 , javax . swing . GroupLayout . PREFERRED_SIZE , 80 , javax . swing . GroupLayout . PREFERRED_SIZE ) . addPreferredGap ( javax . swing . LayoutStyle . ComponentPlacement . UNRELATED ) . addComponent ( allNodesRadio ) . addPreferredGap ( javax . swing . LayoutStyle . ComponentPlacement . UNRELATED ) . addComponent ( justConnectionsRadio ) . addContainerGap ( 187 , Short . MAX_VALUE ) ) ) ; }
This method is called from within the constructor to
 initialize the form.
This method is called from within the constructor to initialize the form .
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents // NOI18N // NOI18N // NOI18N // NOI18N