@Override
	public void draw(int mx, int my, Graphic g) {

		//setStrokeSize

		g.setColor(undefinedColor);

		if(shift) {

			int mydif = my-startPointY;
			int mxdif = mx-startPointX;

			if(my<startPointY) {
				mydif = startPointY-my;
			}

			if(mx<startPointX) {
				mxdif = startPointX-mx;	
			}

			if(mxdif>mydif) {
				my = startPointY;
			}else if(mydif>mxdif) {
				mx = startPointX;
			}

		}

		g.drawLine(startPointX, startPointY, mx, my);
		
	}