add dot and line class to represent the vector mode