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