add setStartPosition and setMaxLineCount methods; reorder switch cases