Right-click to set origin; click to set the direction. Hold shift for a line parallel to an axis.