Created DashPatternBox class and moved dash code over from BaseTool.