private void addNewLine(){
  if (addLineDialog == null) {
    addLineDialog=new AddParallelLineDialog();
  }
  addLineDialog.setChartEngine(engine);
  addLineDialog.showDialog();
  if (horizontalLineRadiobutton.isSelected()) {
    setHorizontalLineSelected();
  }
 else   if (verticalLineRadiobutton.isSelected()) {
    setVerticalLineSelected();
  }
}

private void addNewLine ( ) { if ( addLineDialog == null ) { addLineDialog = new AddParallelLineDialog ( ) ; } addLineDialog . setChartEngine ( engine ) ; addLineDialog . showDialog ( ) ; if ( horizontalLineRadiobutton . isSelected ( ) ) { setHorizontalLineSelected ( ) ; } else if ( verticalLineRadiobutton . isSelected ( ) ) { setVerticalLineSelected ( ) ; } }
adds a new line .
