}
};
rbpie = new JRadioButton(resources.getString("Pie"));
rbchord = new JRadioButton(resources.getString("Chord"));
rbopen = new JRadioButton(resources.getString("Open"));
ButtonGroup bg = new ButtonGroup();
bg.add(rbfull);
bg.add(rbpie);
bg.add(rbchord);
bg.add(rbopen);
GridBagPanel typePanel = new GridBagPanel();
typePanel.addOnCurrentRow(ltype);
typePanel.addOnCurrentRow(rbfull);
typePanel.addOnCurrentRow(rbpie);
typePanel.addOnCurrentRow(rbchord);
typePanel.addOnCurrentRow(rbopen);
typePanel.carriageReturn();
// start angle
GridBagPanel startAnglePanel = new GridBagPanel(resources.getString("StartAngle"));
lunitstart = new JLabel(resources.getString("Unit:"));
rbdegstart = new JRadioButton(resources.getString("Degree"), true);
rbradstart = new JRadioButton(resources.getString("Radian"), false);
bg = new ButtonGroup();
bg.add(rbdegstart);
bg.add(rbradstart);
rbfixedstart = new JRadioButton(resources.getString("FixedValue:"));
nfstart = new NumberField(0.0);
dstreestart = FilteredSourceTree.getFromPool("PropertiesPanel0");
dstreestart.getSourceTree().addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
updateWarnings();
}
});
rbsourcestart = new ActionRadioButton(resources.getString("UseDataSource")) {
public void stateChanged(ChangeEvent e) {
nfstart.setEnabled(!isSelected());
dstreestart.setEnabled(isSelected());
updateWarnings();
}
};
bg = new ButtonGroup();
bg.add(rbfixedstart);
bg.add(rbsourcestart);
// end angle
GridBagPanel endAnglePanel = new GridBagPanel(resources.getString("EndAngle"));
lunitend = new JLabel(resources.getString("Unit:"));
rbdegend = new JRadioButton(resources.getString("Degree"), true);
rbradend = new JRadioButton(resources.getString("Radian"), false);
bg = new ButtonGroup();
bg.add(rbdegend);
bg.add(rbradend);
rbfixedend = new JRadioButton(resources.getString("FixedValue:"));
nfend = new NumberField(0.0);
dstreeend = FilteredSourceTree.getFromPool("PropertiesPanel1");
dstreeend.getSourceTree().addTreeSelectionListener(new TreeSelectionListener() {
public void valueChanged(TreeSelectionEvent e) {
updateWarnings();
}
});
rbsourceend = new ActionRadioButton(resources.getString("UseDataSource")) {
public void stateChanged(ChangeEvent e) {
nfend.setEnabled(!isSelected());
dstreeend.setEnabled(isSelected());
updateWarnings();
}
};
bg = new ButtonGroup();
bg.add(rbfixedend);
bg.add(rbsourceend);
rbsourcestart.apply();
rbsourceend.apply();
rbfull.apply();
// Create panel
GridBagPanel unitPanel = new GridBagPanel();